Skip to content

Commit

Permalink
Fix tests on node<20
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-orlik committed Dec 15, 2023
1 parent 6d9709e commit 4f0d97d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import crypto from 'crypto'
import { MCEvent } from '@managed-components/types'
import { getRandomInt, getRequestBody } from '.'

if (!global.crypto) {
vi.stubGlobal('crypto', crypto)
}

describe('Snapchat MC works correctly', () => {
const fetchedRequests: any = []

Check warning on line 10 in src/index.test.ts

View workflow job for this annotation

GitHub Actions / build-test (18.x)

Unexpected any. Specify a different type
const setCookies: any = []

Check warning on line 11 in src/index.test.ts

View workflow job for this annotation

GitHub Actions / build-test (18.x)

Unexpected any. Specify a different type
Expand Down

0 comments on commit 4f0d97d

Please sign in to comment.