Skip to content

Commit

Permalink
INT-9599 Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Ferrero committed Sep 21, 2023
1 parent ada0638 commit 1c8c8d8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -625,16 +625,16 @@ describe('publishMetric', () => {
invocationConfig,
});

const infoSpy = jest.spyOn(logger, 'info');
const debugSpy = jest.spyOn(logger, 'debug');

logger.publishMetric({
name: 'metric',
value: 1000,
unit: 'Milliseconds',
});

expect(infoSpy).toHaveBeenCalledTimes(1);
expect(infoSpy).toHaveBeenCalledWith(
expect(debugSpy).toHaveBeenCalledTimes(1);
expect(debugSpy).toHaveBeenCalledWith(
{
metric: {
name: 'metric',
Expand Down

0 comments on commit 1c8c8d8

Please sign in to comment.