mirror of
https://github.com/danbulant/jose
synced 2026-05-24 12:35:36 +00:00
11 lines
301 B
JavaScript
11 lines
301 B
JavaScript
import test from 'ava'
|
|
|
|
const root = !('WEBCRYPTO' in process.env) ? '#dist' : '#dist/webcrypto'
|
|
const { default: iv } = await import(`${root}/lib/iv`)
|
|
|
|
test('lib/iv.ts', (t) => {
|
|
t.throws(() => iv('foo'), {
|
|
code: 'ERR_JOSE_NOT_SUPPORTED',
|
|
message: 'Unsupported JWE Algorithm: foo',
|
|
})
|
|
})
|