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:
parent
9a674018b0
commit
54347e2a31
2 changed files with 9 additions and 7 deletions
|
@ -1,11 +1,11 @@
|
||||||
/*globals describe, before, beforeEach, afterEach, after, it*/
|
/*globals describe, before, beforeEach, afterEach, after, it*/
|
||||||
var testUtils = require('../utils'),
|
var testUtils = require('../utils'),
|
||||||
should = require('should'),
|
should = require('should'),
|
||||||
rewire = require('rewire'),
|
rewire = require('rewire'),
|
||||||
|
|
||||||
// Stuff we are testing
|
// Stuff we are testing
|
||||||
packageInfo = require('../../../package'),
|
packageInfo = require('../../../package'),
|
||||||
updateCheck = rewire('../../server/update-check');
|
updateCheck = rewire('../../server/update-check');
|
||||||
|
|
||||||
describe('Update Check', function () {
|
describe('Update Check', function () {
|
||||||
var environmentsOrig;
|
var environmentsOrig;
|
||||||
|
@ -19,7 +19,7 @@ describe('Update Check', function () {
|
||||||
updateCheck.__set__('allowedCheckEnvironments', environmentsOrig);
|
updateCheck.__set__('allowedCheckEnvironments', environmentsOrig);
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(testUtils.setup('owner', 'posts'));
|
beforeEach(testUtils.setup('owner', 'posts', 'perms:setting', 'perms:user', 'perms:init'));
|
||||||
|
|
||||||
afterEach(testUtils.teardown);
|
afterEach(testUtils.teardown);
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
/*globals describe, it, beforeEach, afterEach */
|
/*globals describe, it, beforeEach, afterEach */
|
||||||
var fs = require('fs'),
|
var fs = require('fs'),
|
||||||
sinon = require('sinon'),
|
sinon = require('sinon'),
|
||||||
|
should = require('should'),
|
||||||
serveSharedFile = require('../../../server/middleware/serve-shared-file'),
|
serveSharedFile = require('../../../server/middleware/serve-shared-file'),
|
||||||
|
|
||||||
sandbox = sinon.sandbox.create();
|
sandbox = sinon.sandbox.create();
|
||||||
|
|
||||||
|
should.equal(true, true);
|
||||||
|
|
||||||
describe('serveSharedFile', function () {
|
describe('serveSharedFile', function () {
|
||||||
var res, req, next;
|
var res, req, next;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue