Refactoring diagnostic tests in multiple files.

This commit is contained in:
John Livingston
2021-04-12 17:53:12 +02:00
parent 6bc1f66cf1
commit d1ede8d3ee
9 changed files with 240 additions and 157 deletions

View File

@ -0,0 +1,18 @@
type nextValue = 'backend' | 'webchat-video' | 'webchat-type' | 'prosody' | 'converse' | 'use-uri'
export interface TestResult {
label?: string
messages: string[]
next: nextValue | null
ok: boolean
test: string
}
export function newResult (test: string): TestResult {
return {
test: test,
ok: false,
messages: [],
next: null
}
}