Refactoring diagnostic tests in multiple files.
This commit is contained in:
18
server/lib/diagnostic/utils.ts
Normal file
18
server/lib/diagnostic/utils.ts
Normal 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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user