Skip to content

Commit

Permalink
test: replace .toBe matchers at recorder tests (smoya#11)
Browse files Browse the repository at this point in the history
test: replace `.toBe` matchers at recorder tests
  • Loading branch information
smoya authored Oct 26, 2023
2 parents f921df8 + f46e865 commit aaba61c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/recorder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ describe('Recorder', function() {

await recorder.record(metric);
expect(recorderMetricsSpy).toHaveLength(1);
expect(recorderMetricsSpy[0]).toBe(metric);
expect(recorderMetricsSpy[0]).toEqual(metric);
expect(sink.metrics).toHaveLength(0);

await recorder.flush();
expect(recorderMetricsSpy).toHaveLength(0);
expect(sink.metrics).toHaveLength(1);
expect(sink.metrics[0]).toBe(metric);
expect(sink.metrics[0]).toEqual(metric);
});

it('count()', async function() {
Expand Down

0 comments on commit aaba61c

Please sign in to comment.