.field('nsfw', 'false')
.field('channelId', '1')
- const filePath = join(__dirname, '..', 'api', 'fixtures', 'video_short.webm')
+ const filePath = join(__dirname, '..', '..', 'api', 'fixtures', 'video_short.webm')
await req.attach('videofile', filePath)
.expect(200)
it('Should remove the video', async function () {
await removeVideo(server.url, server.accessToken, videoId)
- const files1 = await readdirPromise(join(__dirname, '..', '..', '..', 'test1/videos/'))
+ const files1 = await readdirPromise(join(__dirname, '..', '..', '..', '..', 'test1/videos/'))
expect(files1).to.have.lengthOf(0)
- const files2 = await readdirPromise(join(__dirname, '..', '..', '..', 'test1/thumbnails/'))
+ const files2 = await readdirPromise(join(__dirname, '..', '..', '..', '..', 'test1/thumbnails/'))
expect(files2).to.have.lengthOf(0)
})
return makeGetRequest({
url,
- path
+ path,
+ statusCodeExpected: 200
})
}
return makeGetRequest({
url,
- path
+ path,
+ statusCodeExpected: 200
})
}
return makeGetRequest({
url,
- path
+ path,
+ statusCodeExpected: 200
})
}
return makeGetRequest({
url,
- path
+ path,
+ statusCodeExpected: 200
})
}