diff --git a/core/test/integration/model/model_permissions_spec.js b/core/test/integration/model/model_permissions_spec.js index e95f59380f..8a33e11d0c 100644 --- a/core/test/integration/model/model_permissions_spec.js +++ b/core/test/integration/model/model_permissions_spec.js @@ -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) { diff --git a/core/test/integration/model/model_settings_spec.js b/core/test/integration/model/model_settings_spec.js index a444a01033..c08f352e66 100644 --- a/core/test/integration/model/model_settings_spec.js +++ b/core/test/integration/model/model_settings_spec.js @@ -212,5 +212,4 @@ describe('Settings Model', function () { }).catch(done); }); }); - }); diff --git a/core/test/integration/model/model_tags_spec.js b/core/test/integration/model/model_tags_spec.js index f402c19785..a8fb21c2a5 100644 --- a/core/test/integration/model/model_tags_spec.js +++ b/core/test/integration/model/model_tags_spec.js @@ -346,10 +346,7 @@ describe('Tag Model', function () { postWithTag.related('tags').length.should.equal(1); done(); }).catch(done); - }); }); - }); - -}); \ No newline at end of file +}); diff --git a/core/test/integration/model/model_users_spec.js b/core/test/integration/model/model_users_spec.js index cc853b55c0..c4d9ce5dbe 100644 --- a/core/test/integration/model/model_users_spec.js +++ b/core/test/integration/model/model_users_spec.js @@ -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() { }); }); }); - });