mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Remove timeouts on tests
This commit is contained in:
parent
d34d710b80
commit
5e8f3d927f
4 changed files with 3 additions and 7 deletions
|
@ -25,7 +25,6 @@ describe('Post API', function () {
|
|||
});
|
||||
|
||||
beforeEach(function (done) {
|
||||
this.timeout(5000);
|
||||
testUtils.initData()
|
||||
.then(function () {
|
||||
testUtils.insertDefaultFixtures();
|
||||
|
@ -164,7 +163,7 @@ describe('Post API', function () {
|
|||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
it('can\'t retrieve non existent post', function (done) {
|
||||
request.get(testUtils.API.getApiURL('posts/99/'), function (error, response, body) {
|
||||
response.should.have.status(404);
|
||||
|
@ -191,7 +190,7 @@ describe('Post API', function () {
|
|||
response.should.be.json;
|
||||
putBody.should.exist;
|
||||
putBody.title.should.eql(changedValue);
|
||||
|
||||
|
||||
testUtils.API.checkResponse (putBody, expectedPostProperties);
|
||||
done();
|
||||
});
|
||||
|
|
|
@ -22,7 +22,6 @@ describe('Settings API', function () {
|
|||
});
|
||||
|
||||
beforeEach(function (done) {
|
||||
this.timeout(5000);
|
||||
testUtils.initData()
|
||||
.then(function () {
|
||||
testUtils.insertDefaultFixtures();
|
||||
|
|
|
@ -21,7 +21,6 @@ describe('Tag API', function () {
|
|||
});
|
||||
|
||||
beforeEach(function (done) {
|
||||
this.timeout(5000);
|
||||
testUtils.initData()
|
||||
.then(function () {
|
||||
testUtils.insertDefaultFixtures();
|
||||
|
|
|
@ -22,7 +22,6 @@ describe('User API', function () {
|
|||
});
|
||||
|
||||
beforeEach(function (done) {
|
||||
this.timeout(5000);
|
||||
testUtils.initData()
|
||||
.then(function () {
|
||||
testUtils.insertDefaultFixtures();
|
||||
|
@ -97,7 +96,7 @@ describe('User API', function () {
|
|||
response.should.be.json;
|
||||
putBody.should.exist;
|
||||
putBody.website.should.eql(changedValue);
|
||||
|
||||
|
||||
testUtils.API.checkResponse (putBody, expectedProperties);
|
||||
done();
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue