0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Merge pull request #2662 from sebgie/issue#2660

Removed 2 sec pause
This commit is contained in:
Hannah Wolfe 2014-04-30 14:03:37 +01:00
commit b192dd9303
4 changed files with 8 additions and 9 deletions

View file

@ -43,7 +43,7 @@ describe('Post API', function () {
pattern_meta.should.exist;
csrfToken = res.text.match(pattern_meta)[1];
setTimeout(function () {
process.nextTick(function() {
request.post('/ghost/signin/')
.set('X-CSRF-Token', csrfToken)
.send({email: user.email, password: user.password})
@ -67,7 +67,7 @@ describe('Post API', function () {
});
});
}, 2000);
});
});
}, done);

View file

@ -43,7 +43,7 @@ describe('Settings API', function () {
pattern_meta.should.exist;
csrfToken = res.text.match(pattern_meta)[1];
setTimeout(function () {
process.nextTick(function() {
request.post('/ghost/signin/')
.set('X-CSRF-Token', csrfToken)
.send({email: user.email, password: user.password})
@ -67,7 +67,7 @@ describe('Settings API', function () {
});
});
}, 2000);
});
});
}, done);

View file

@ -43,7 +43,7 @@ describe('Tag API', function () {
pattern_meta.should.exist;
csrfToken = res.text.match(pattern_meta)[1];
setTimeout(function () {
process.nextTick(function() {
request.post('/ghost/signin/')
.set('X-CSRF-Token', csrfToken)
.send({email: user.email, password: user.password})
@ -67,8 +67,7 @@ describe('Tag API', function () {
});
});
}, 2000);
});
});
}, done);
}).otherwise(function (e) {

View file

@ -44,7 +44,7 @@ describe('User API', function () {
pattern_meta.should.exist;
csrfToken = res.text.match(pattern_meta)[1];
setTimeout(function () {
process.nextTick(function() {
request.post('/ghost/signin/')
.set('X-CSRF-Token', csrfToken)
.send({email: user.email, password: user.password})
@ -67,7 +67,7 @@ describe('User API', function () {
});
});
}, 2000);
});
});
}, done);