0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

fix: update_check_spec setup, serve-shared-file_spec setup

revert whitespace changes
This commit is contained in:
Katharina Irrgang 2016-04-08 12:39:50 +02:00 committed by Katharina Irrgang
parent 9a674018b0
commit 54347e2a31
2 changed files with 9 additions and 7 deletions

View file

@ -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);

View file

@ -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;