mirror of
https://github.com/hanzoai/jose.git
synced 2026-09-24 17:00:01 +00:00
BREAKING CHANGE: createRemoteJWKSet now uses fetch, because of that its Node.js only options.agent property has been removed and new fetch-related options were added
9 lines
245 B
TypeScript
9 lines
245 B
TypeScript
import test from 'ava'
|
|
|
|
import { uint32be } from '../../src/lib/buffer_utils.js'
|
|
|
|
test('lib/buffer_utils.ts', (t) => {
|
|
t.throws(() => uint32be(-1), { instanceOf: RangeError })
|
|
t.throws(() => uint32be(2 ** 32), { instanceOf: RangeError })
|
|
})
|