2021-04-12 15:53:12 +00:00
|
|
|
type nextValue = 'backend' | 'webchat-video' | 'webchat-type' | 'prosody' | 'converse' | 'use-uri'
|
|
|
|
|
|
|
|
export interface TestResult {
|
|
|
|
label?: string
|
|
|
|
messages: string[]
|
2021-04-14 14:14:56 +00:00
|
|
|
debug: Array<{
|
|
|
|
title: string
|
|
|
|
message: string
|
|
|
|
}>
|
2021-04-12 15:53:12 +00:00
|
|
|
next: nextValue | null
|
|
|
|
ok: boolean
|
|
|
|
test: string
|
|
|
|
}
|
|
|
|
|
|
|
|
export function newResult (test: string): TestResult {
|
|
|
|
return {
|
|
|
|
test: test,
|
|
|
|
ok: false,
|
|
|
|
messages: [],
|
2021-04-14 14:14:56 +00:00
|
|
|
debug: [],
|
2021-04-12 15:53:12 +00:00
|
|
|
next: null
|
|
|
|
}
|
|
|
|
}
|