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
19 lines
364 B
TypeScript
19 lines
364 B
TypeScript
import QUnit from 'qunit'
|
|
import run from './run.js'
|
|
import * as lib from '../src/index.js'
|
|
|
|
export default {
|
|
async test() {
|
|
await new Promise((resolve, reject) => {
|
|
run(QUnit, lib, lib, (results) => {
|
|
if (results?.failed !== 0) {
|
|
reject()
|
|
} else {
|
|
// @ts-ignore
|
|
resolve()
|
|
}
|
|
})
|
|
})
|
|
},
|
|
}
|