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:
parent
e42739fe97
commit
36ba3549e7
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…
Reference in a new issue