feat: initial commit
This commit is contained in:
19
tests/index.text.js
Normal file
19
tests/index.text.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// tests/index.test.js
|
||||
|
||||
const { printCommandSummary } = require('../index');
|
||||
const chalk = require('chalk');
|
||||
|
||||
describe('printCommandSummary', () => {
|
||||
it('should print the command summary without errors', () => {
|
||||
// Mock console.log to capture output
|
||||
const logSpy = jest.spyOn(console, 'log').mockImplementation(() => {});
|
||||
|
||||
printCommandSummary();
|
||||
|
||||
// Check that console.log was called
|
||||
expect(logSpy).toHaveBeenCalled();
|
||||
|
||||
// Restore console.log
|
||||
logSpy.mockRestore();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user