0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Merge pull request #6456 from jaswilli/issue-6449

deps: supertest@1.1.0
This commit is contained in:
Hannah Wolfe 2016-02-08 09:54:20 +00:00
commit 32fb88b418
3 changed files with 4 additions and 8 deletions

View file

@ -25,7 +25,7 @@ describe('Public API', function () {
return testUtils.doAuth(request, 'posts', 'tags');
}).then(function (token) {
// enable public API
return request.put(testUtils.API.getApiQuery('settings/'))
request.put(testUtils.API.getApiQuery('settings/'))
.set('Authorization', 'Bearer ' + token)
.send(publicAPIaccessSetting)
.expect('Content-Type', /json/)

View file

@ -537,13 +537,9 @@ login = function login(request) {
password: user.password,
client_id: 'ghost-admin',
client_secret: 'not_available'
}).end(function (err, res) {
if (err) {
return reject(err);
}
}).then(function then(res) {
resolve(res.body.access_token);
});
}, reject);
});
};

View file

@ -99,7 +99,7 @@
"rimraf-then": "^1.0.0",
"should": "6.0.3",
"sinon": "1.14.1",
"supertest": "1.0.1",
"supertest": "1.1.0",
"testem": "0.8.3",
"top-gh-contribs": "2.0.2"
},