Files
jose/test/unit/buffer_utils.test.ts
Filip Skokan eebee55a01 refactor: restructure src/lib and src/runtime now that runtime is fixed
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
2025-02-22 15:16:04 +01:00

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 })
})