Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
iowillhoit committed Apr 19, 2023
1 parent 55bcbc3 commit a9f9a47
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/unit/loggerTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,7 @@ describe('Logger', () => {

it('should apply for log level: error', () => runTest(['error', 50]));

it('should apply for log level: fatal', async () => {
// logger.fatal() necessarily writes to stderr so stub it here
$$.SANDBOX.stub(process.stderr, 'write');
await runTest(['fatal', 60]);
// @ts-expect-error: called is a sinon spy property
expect(process.stderr.write['called']).to.be.true;
});
it('should apply for log level: fatal', () => runTest(['fatal', 60]));
});

describe('addField', () => {
Expand Down

0 comments on commit a9f9a47

Please sign in to comment.