0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Refactored media tests

refs https://github.com/TryGhost/Toolbox/issues/120

- Introduced a new describe block before adding tests for a new endpoint
This commit is contained in:
Naz 2021-11-08 20:16:10 +04:00
parent 3f59c1893b
commit fb8005f6e2

View file

@ -23,6 +23,7 @@ describe('Media API', function () {
});
});
describe('media/upload', function () {
it('Can upload a MP4', async function () {
const res = await request.post(localUtils.API.getApiQuery('media/upload'))
.set('Origin', config.get('url'))
@ -83,4 +84,8 @@ describe('Media API', function () {
res.body.errors[0].message.should.match(/select a valid media file/gi);
});
});
describe('media/thumbnail/:url', function () {
});
});