use force flag for test

This commit is contained in:
Joe Danziger
2025-05-11 17:48:54 -04:00
parent 50f226a50e
commit 16de4cbb88

View File

@@ -1117,8 +1117,10 @@ describe('rules command', () => {
});
test('should handle rules remove <brand> command', async () => {
// Simulate: task-master rules remove roo
await program.parseAsync(['rules', 'remove', 'roo'], { from: 'user' });
// Simulate: task-master rules remove roo --force
await program.parseAsync(['rules', 'remove', 'roo', '--force'], {
from: 'user'
});
// Expect some log output indicating removal
expect(mockConsoleLog).toHaveBeenCalledWith(
expect.stringMatching(/removing rules for brand: roo/i)