Skip to content

Commit

Permalink
Stub global crypto if it's not available
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-orlik committed Dec 11, 2023
1 parent 9f8561a commit ba0f16b
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,4 +1,9 @@
import { getRequestBody } from '.'
import crypto from 'crypto'

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

describe('Podsights MC works correctly', () => {
const dummyClient = {
Expand Down

0 comments on commit ba0f16b

Please sign in to comment.