mirror of
https://github.com/danbulant/jose
synced 2026-05-19 04:18:52 +00:00
11 lines
267 B
JavaScript
11 lines
267 B
JavaScript
import test from 'ava'
|
|
import { root } from '../dist.mjs'
|
|
|
|
const { default: cek } = await import(`${root}/lib/cek`)
|
|
|
|
test('lib/cek.ts', (t) => {
|
|
t.throws(() => cek('foo'), {
|
|
code: 'ERR_JOSE_NOT_SUPPORTED',
|
|
message: 'Unsupported JWE Algorithm: foo',
|
|
})
|
|
})
|