Skip to content

Commit

Permalink
refactor(packages/sui-react-web-vitals): use calledOnceWithMatch method
Browse files Browse the repository at this point in the history
  • Loading branch information
nucliweb committed Feb 8, 2024
1 parent a2f49b5 commit 2ad05b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sui-react-web-vitals/test/browser/indexSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ describe('WebVitalsReporter', () => {
render(<WebVitalsReporter metrics={[METRICS.INP]} allowed={['/']} reporter={reporter} />, {logger})
await waitFor(() => [
expect(
logger.cwv.calledWith({
logger.cwv.calledOnceWithMatch({
name: 'cwv.inp',
amount: 304,
path: '/',
Expand Down

0 comments on commit 2ad05b9

Please sign in to comment.