From f8040eccc83908b265c08d0e8e80b91334aa7cbf Mon Sep 17 00:00:00 2001 From: Joe Danziger Date: Sun, 11 May 2025 15:25:38 -0400 Subject: [PATCH] fix formatting --- tests/unit/commands.test.js | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/tests/unit/commands.test.js b/tests/unit/commands.test.js index 20e11946..4c9b302b 100644 --- a/tests/unit/commands.test.js +++ b/tests/unit/commands.test.js @@ -1096,7 +1096,9 @@ describe('rules command', () => { jest.clearAllMocks(); program = setupCLI(); mockConsoleLog = jest.spyOn(console, 'log').mockImplementation(() => {}); - mockConsoleError = jest.spyOn(console, 'error').mockImplementation(() => {}); + mockConsoleError = jest + .spyOn(console, 'error') + .mockImplementation(() => {}); mockExit = jest.spyOn(process, 'exit').mockImplementation(() => {}); }); @@ -1104,8 +1106,12 @@ describe('rules command', () => { // Simulate: task-master rules add roo await program.parseAsync(['rules', 'add', 'roo'], { from: 'user' }); // Expect some log output indicating success - expect(mockConsoleLog).toHaveBeenCalledWith(expect.stringMatching(/adding rules for brand: roo/i)); - expect(mockConsoleLog).toHaveBeenCalledWith(expect.stringMatching(/completed adding rules for brand: roo/i)); + expect(mockConsoleLog).toHaveBeenCalledWith( + expect.stringMatching(/adding rules for brand: roo/i) + ); + expect(mockConsoleLog).toHaveBeenCalledWith( + expect.stringMatching(/completed adding rules for brand: roo/i) + ); // Should not exit with error expect(mockExit).not.toHaveBeenCalledWith(1); }); @@ -1114,8 +1120,12 @@ describe('rules command', () => { // Simulate: task-master rules remove roo await program.parseAsync(['rules', 'remove', 'roo'], { from: 'user' }); // Expect some log output indicating removal - expect(mockConsoleLog).toHaveBeenCalledWith(expect.stringMatching(/removing rules for brand: roo/i)); - expect(mockConsoleLog).toHaveBeenCalledWith(expect.stringMatching(/completed removal for brand: roo/i)); + expect(mockConsoleLog).toHaveBeenCalledWith( + expect.stringMatching(/removing rules for brand: roo/i) + ); + expect(mockConsoleLog).toHaveBeenCalledWith( + expect.stringMatching(/completed removal for brand: roo/i) + ); // Should not exit with error expect(mockExit).not.toHaveBeenCalledWith(1); });