Skip to content

Commit 169bf6f

Browse files
committed
fix test
1 parent d34f245 commit 169bf6f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/contentstack-utilities/test/unit/cliProgressManager.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,10 @@ describe('CLIProgressManager', () => {
466466
moduleName: 'TEST',
467467
});
468468
try {
469+
// Ignore prior tests in this describe; only assert console.log for this log() call.
470+
consoleLogStub.resetHistory();
469471
silentManager.log('Test message');
470-
expect(consoleLogStub.called).to.be.false;
472+
expect(consoleLogStub.callCount).to.equal(0);
471473
} finally {
472474
try {
473475
silentManager.stop();

0 commit comments

Comments
 (0)