mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Added missing canary test present in v3 tests
- this test was present in the v3 test suite but not in the canary ones - given v3 == canary currently, these tests should essentially be the same - copied the test over
This commit is contained in:
parent
b35eef1b02
commit
622a57fc26
1 changed files with 8 additions and 0 deletions
|
@ -106,6 +106,14 @@ describe('DB API', function () {
|
|||
});
|
||||
});
|
||||
|
||||
it('fails when triggering an export from unknown filename ', function () {
|
||||
return request.get(localUtils.API.getApiQuery('db/?filename=this_file_is_not_here.json'))
|
||||
.set('Origin', config.get('url'))
|
||||
.set('Accept', 'application/json')
|
||||
.expect('Content-Type', /json/)
|
||||
.expect(404);
|
||||
});
|
||||
|
||||
it('import should fail without file', function () {
|
||||
return request.post(localUtils.API.getApiQuery('db/'))
|
||||
.set('Origin', config.get('url'))
|
||||
|
|
Loading…
Reference in a new issue