Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed Sep 15, 2021
1 parent 41a9980 commit 385caf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/browser/test/unit/transports/base.test.ts
Expand Up @@ -53,7 +53,7 @@ describe('BaseTransport', () => {

expect(sendBeaconSpy).toHaveBeenCalledWith(
envelopeEndpoint,
`{"type":"client_report"}\n{"timestamp":1337,"discarded_events":${JSON.stringify(outcomes)}}`,
`{}\n{"type":"client_report"}\n{"timestamp":1337,"discarded_events":${JSON.stringify(outcomes)}}`,
);
});

Expand Down Expand Up @@ -89,7 +89,7 @@ describe('BaseTransport', () => {

expect(sendBeaconSpy).toHaveBeenCalledWith(
envelopeEndpoint,
`{"type":"client_report"}\n{"timestamp":1337,"discarded_events":${JSON.stringify(outcomes)}}`,
`{}\n{"type":"client_report"}\n{"timestamp":1337,"discarded_events":${JSON.stringify(outcomes)}}`,
);
});
});
Expand Down

0 comments on commit 385caf5

Please sign in to comment.