expect(str.startsWith(start), `${str} does not start with ${start}`).to.be.true
}
+async function expectLogDoesNotContain (server: PeerTubeServer, str: string) {
+ const content = await server.servers.getLogContent()
+
+ expect(content.toString()).to.not.contain(str)
+}
+
async function testImage (url: string, imageName: string, imagePath: string, extension = '.jpg') {
const res = await makeGetRequest({
url,
export {
dateIsValid,
testImage,
+ expectLogDoesNotContain,
testFileExistsOrNot,
expectStartWith
}