28 lines
547 B
TypeScript
28 lines
547 B
TypeScript
type nextValue = 'backend' | 'webchat-video' | 'webchat-type' | 'prosody' | 'converse' | 'use-uri'
|
|
|
|
interface MessageWithLevel {
|
|
level: 'info' | 'warning' | 'error'
|
|
message: string
|
|
}
|
|
export interface TestResult {
|
|
label?: string
|
|
messages: Array<string | MessageWithLevel>
|
|
debug: Array<{
|
|
title: string
|
|
message: string
|
|
}>
|
|
next: nextValue | null
|
|
ok: boolean
|
|
test: string
|
|
}
|
|
|
|
export function newResult (test: string): TestResult {
|
|
return {
|
|
test: test,
|
|
ok: false,
|
|
messages: [],
|
|
debug: [],
|
|
next: null
|
|
}
|
|
}
|