Skip to content

Commit

Permalink
update expectation in test
Browse files Browse the repository at this point in the history
  • Loading branch information
trentm committed Nov 11, 2023
1 parent 132dc38 commit 2d161a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/test/common/internal/global.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,10 @@ describe('Global Utils', () => {
_globalThis[Symbol.for(GLOBAL_API_SYMBOL_KEY)].version = '0.0.1';

assert.equal(false, api1.diag.setLogger(logger2)); // won't happen
sinon.assert.calledWith(logger2.error, sinon.match(/Registration of version .*? does not match previously registered API v0.0.1/));

api1.diag.info('message');
sinon.assert.notCalled(logger2.error);
sinon.assert.notCalled(logger2.info);
sinon.assert.notCalled(logger2.warn);
});

it('should debug log registrations', () => {
Expand Down

0 comments on commit 2d161a8

Please sign in to comment.