0
Fork 0
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:
Daniel Lockyer 2020-12-01 09:01:42 +00:00
parent b35eef1b02
commit 622a57fc26
No known key found for this signature in database
GPG key ID: FFBC6FA2A6F6ABC1

View file

@ -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'))