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:
parent
3f59c1893b
commit
fb8005f6e2
1 changed files with 60 additions and 55 deletions
|
@ -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 () {
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue