Skip to content

Commit

Permalink
Replace '.toBe' matchers at recorder tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-rr committed Oct 26, 2023
1 parent f921df8 commit f46e865
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 f46e865

Please sign in to comment.