mirror of
https://github.com/hanzoai/openid-client.git
synced 2026-09-24 17:01:10 +00:00
30 lines
825 B
TypeScript
30 lines
825 B
TypeScript
import * as runner from '../runner.js'
|
|
|
|
export default function pass(metaUrl: string, options?: runner.MacroOptions) {
|
|
for (const module of runner.modules(metaUrl)) {
|
|
runner.test.serial(runner.flow(options), module)
|
|
}
|
|
}
|
|
|
|
export function skippable(metaUrl: string, options?: runner.MacroOptions) {
|
|
for (const module of runner.modules(metaUrl)) {
|
|
runner.test.serial(runner.skippable(runner.flow(options)), module)
|
|
}
|
|
}
|
|
|
|
export function rejects(
|
|
metaUrl: string,
|
|
expected: runner.CodeErrorAssertion | runner.MessageErrorAssertion,
|
|
cause?: runner.CodeErrorAssertion | runner.MessageErrorAssertion,
|
|
options?: runner.MacroOptions,
|
|
) {
|
|
for (const module of runner.modules(metaUrl)) {
|
|
runner.test.serial(
|
|
runner.rejects(runner.flow(options)),
|
|
module,
|
|
expected,
|
|
cause,
|
|
)
|
|
}
|
|
}
|