mirror of
https://github.com/hanzoai/openid-client.git
synced 2026-09-24 17:01:10 +00:00
29 lines
680 B
TypeScript
29 lines
680 B
TypeScript
import type QUnit from 'qunit'
|
|
|
|
export default async (
|
|
QUnit: QUnit,
|
|
done: (details: QUnit.DoneDetails) => void,
|
|
) => {
|
|
// @ts-ignore
|
|
QUnit.reporters.tap.init(QUnit)
|
|
QUnit.config.autostart = false
|
|
QUnit.config.testTimeout = 60_000
|
|
|
|
const modules = await Promise.all([
|
|
import('./end2end-client-credentials.js'),
|
|
import('./end2end-device-code.js'),
|
|
import('./end2end.js'),
|
|
])
|
|
if (!(
|
|
typeof navigator !== 'undefined' &&
|
|
navigator.userAgent?.startsWith?.('Mozilla/5.0 ')
|
|
)) {
|
|
modules.push(await import('./end2end-ciba.js'))
|
|
}
|
|
for (const { default: module } of modules) {
|
|
await module(QUnit)
|
|
}
|
|
QUnit.start()
|
|
QUnit.done(done)
|
|
}
|