Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
test: remove unused assertions from analytic unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MinHtet-O committed May 8, 2024
1 parent 6a73415 commit 0149645
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
29 changes: 29 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions src/utils/analytics/analytics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ describe('validateGaEvent', () => {
label: undefined,
value: undefined,
})
expect(true).toBe(true)
})

it('passes for all values', () => {
Expand All @@ -118,7 +117,6 @@ describe('validateGaEvent', () => {
label: 'Start Foobar',
value: 2,
})
expect(true).toBe(true)
})
})

Expand All @@ -134,7 +132,6 @@ describe('gaEvent', () => {

it('does not fail if gtag is not present', () => {
gaEvent(mockGaEvent as any)
expect(true).toBe(true)
})

it('sends and log gtag event if window.gtag is present', () => {
Expand Down

0 comments on commit 0149645

Please sign in to comment.