diff --git a/core/test/integration/update_check_spec.js b/core/test/integration/update_check_spec.js index 9140796474..b1fe9b75cb 100644 --- a/core/test/integration/update_check_spec.js +++ b/core/test/integration/update_check_spec.js @@ -1,11 +1,11 @@ /*globals describe, before, beforeEach, afterEach, after, it*/ -var testUtils = require('../utils'), - should = require('should'), - rewire = require('rewire'), +var testUtils = require('../utils'), + should = require('should'), + rewire = require('rewire'), // Stuff we are testing - packageInfo = require('../../../package'), - updateCheck = rewire('../../server/update-check'); + packageInfo = require('../../../package'), + updateCheck = rewire('../../server/update-check'); describe('Update Check', function () { var environmentsOrig; @@ -19,7 +19,7 @@ describe('Update Check', function () { updateCheck.__set__('allowedCheckEnvironments', environmentsOrig); }); - beforeEach(testUtils.setup('owner', 'posts')); + beforeEach(testUtils.setup('owner', 'posts', 'perms:setting', 'perms:user', 'perms:init')); afterEach(testUtils.teardown); diff --git a/core/test/unit/middleware/serve-shared-file_spec.js b/core/test/unit/middleware/serve-shared-file_spec.js index 5af1dd7193..f6705e845c 100644 --- a/core/test/unit/middleware/serve-shared-file_spec.js +++ b/core/test/unit/middleware/serve-shared-file_spec.js @@ -1,10 +1,12 @@ /*globals describe, it, beforeEach, afterEach */ var fs = require('fs'), sinon = require('sinon'), + should = require('should'), serveSharedFile = require('../../../server/middleware/serve-shared-file'), - sandbox = sinon.sandbox.create(); +should.equal(true, true); + describe('serveSharedFile', function () { var res, req, next;