deps: supertest@1.1.0

Closes #6449
- supertest now includes a `.then()` method and as a
  result, only one of either .then or .end may be called on
  a request object.
This commit is contained in:
Jason Williams 2016-02-07 13:10:27 -06:00
parent bda942e20a
commit 2528ce5304
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"
}