Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Feb 21, 2024
1 parent bfb2592 commit e8054ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion encrypt-actions/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TestPair, TestTime } from '@logux/core'
import { Crypto } from '@peculiar/webcrypto'
import { Crypto, CryptoKey } from '@peculiar/webcrypto'
import { delay } from 'nanodelay'
import { TextDecoder, TextEncoder } from 'node:util'
import { expect, it } from 'vitest'
Expand All @@ -15,6 +15,7 @@ window.TextDecoder = TextDecoder
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (!window.crypto) {
window.crypto = new Crypto()
window.CryptoKey = CryptoKey
}

function privateMethods(obj: object): any {
Expand Down

0 comments on commit e8054ad

Please sign in to comment.