mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Merge pull request #3336 from javorszky/fix-catches-in-tests
Replaces then(null, done) with .catch(done), OCD on blank lines
This commit is contained in:
commit
2b28e252d7
4 changed files with 3 additions and 8 deletions
|
@ -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) {
|
||||
|
|
|
@ -212,5 +212,4 @@ describe('Settings Model', function () {
|
|||
}).catch(done);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
@ -346,10 +346,7 @@ describe('Tag Model', function () {
|
|||
postWithTag.related('tags').length.should.equal(1);
|
||||
done();
|
||||
}).catch(done);
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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() {
|
|||
});
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue