0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Replaces then(null, done) with .catch(done), OCD on blank lines

No issue
This commit is contained in:
Gabor Javorszky 2014-07-20 17:32:29 +01:00
parent e42739fe97
commit 36ba3549e7
4 changed files with 3 additions and 8 deletions

View file

@ -37,7 +37,7 @@ describe('Permission Model', function () {
foundPermissions.models.length.should.be.above(0);
done();
}).then(null, done);
}).catch(done);
});
it('can findOne', function (done) {

View file

@ -212,5 +212,4 @@ describe('Settings Model', function () {
}).catch(done);
});
});
});

View file

@ -346,10 +346,7 @@ describe('Tag Model', function () {
postWithTag.related('tags').length.should.equal(1);
done();
}).catch(done);
});
});
});
});

View file

@ -22,7 +22,7 @@ describe('User Model', function run() {
afterEach(function (done) {
testUtils.clearData().then(function () {
done();
}, done);
}).catch(done);
});
describe('Registration', function runRegistration() {
@ -392,5 +392,4 @@ describe('User Model', function run() {
});
});
});
});