blob: 2246bd1335fb0dca86911e51f7a60abaac14e79f (
plain) (
tree)
|
|
import { expect } from 'chai'
import * as request from 'supertest'
import { HttpStatusCode } from '../../core-utils/miscs/http-error-codes'
async function testCaptionFile (url: string, captionPath: string, containsString: string) {
const res = await request(url)
.get(captionPath)
.expect(HttpStatusCode.OK_200)
expect(res.text).to.contain(containsString)
}
// ---------------------------------------------------------------------------
export {
testCaptionFile
}
|