1 import { expect } from 'chai'
2 import request from 'supertest'
3 import { HttpStatusCode } from '@shared/models'
5 async function testCaptionFile (url: string, captionPath: string, containsString: string) {
6 const res = await request(url)
8 .expect(HttpStatusCode.OK_200)
10 expect(res.text).to.contain(containsString)
13 // ---------------------------------------------------------------------------