diff --git a/core/test/integration/api/api_notifications_spec.js b/core/test/integration/api/api_notifications_spec.js index 32da96e10c..f3b19e71b3 100644 --- a/core/test/integration/api/api_notifications_spec.js +++ b/core/test/integration/api/api_notifications_spec.js @@ -13,6 +13,10 @@ describe('Notifications API', function () { should.exist(NotificationsAPI); + after(function () { + return NotificationsAPI.destroyAll(testUtils.context.internal); + }); + it('can add, adds defaults (internal)', function (done) { var msg = { type: 'info', diff --git a/core/test/integration/update_check_spec.js b/core/test/integration/update_check_spec.js index 22c5fb041b..bd779af58c 100644 --- a/core/test/integration/update_check_spec.js +++ b/core/test/integration/update_check_spec.js @@ -1,14 +1,18 @@ var _ = require('lodash'), - testUtils = require('../utils'), should = require('should'), rewire = require('rewire'), uuid = require('uuid'), + testUtils = require('../utils'), configUtils = require('../utils/configUtils'), packageInfo = require('../../../package'), updateCheck = rewire('../../server/update-check'), NotificationsAPI = require('../../server/api/notifications'); describe('Update Check', function () { + after(function () { + return NotificationsAPI.destroyAll(testUtils.context.internal); + }); + describe('Reporting to UpdateCheck', function () { before(function () { configUtils.set('privacy:useUpdateCheck', true); @@ -40,6 +44,7 @@ describe('Update Check', function () { data.post_count.should.be.above(0); data.npm_version.should.be.a.String(); data.npm_version.should.not.be.empty(); + data.lts.should.eql(false); done(); }).catch(done);