mirror of
https://github.com/hanzoai/jose.git
synced 2026-09-24 17:00:01 +00:00
9 lines
248 B
JavaScript
9 lines
248 B
JavaScript
import test from 'ava'
|
|
|
|
const { uint32be } = await import('#dist/lib/buffer_utils')
|
|
|
|
test('lib/buffer_utils.ts', (t) => {
|
|
t.throws(() => uint32be(-1), { instanceOf: RangeError })
|
|
t.throws(() => uint32be(2 ** 32), { instanceOf: RangeError })
|
|
})
|