0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

🚨 fix admin_spec && module_spec

no issue
This commit is contained in:
kirrg001 2016-09-15 13:15:37 +02:00 committed by Hannah Wolfe
parent 231fea4766
commit 79bf09a7c1
2 changed files with 5 additions and 1 deletions

View file

@ -1,12 +1,15 @@
// # Module tests // # Module tests
// This tests using Ghost as an npm module // This tests using Ghost as an npm module
var should = require('should'), var should = require('should'),
testUtils = require('../../utils'),
ghost = require('../../../../core'), ghost = require('../../../../core'),
i18n = require('../../../../core/server/i18n'); i18n = require('../../../../core/server/i18n');
i18n.init(); i18n.init();
describe('Module', function () { describe('Module', function () {
before(testUtils.teardown);
describe('Setup', function () { describe('Setup', function () {
it('should resolve with a ghost-server instance', function (done) { it('should resolve with a ghost-server instance', function (done) {
ghost().then(function (ghostServer) { ghost().then(function (ghostServer) {

View file

@ -6,7 +6,6 @@
var request = require('supertest'), var request = require('supertest'),
should = require('should'), should = require('should'),
testUtils = require('../../utils'), testUtils = require('../../utils'),
ghost = require('../../../../core'), ghost = require('../../../../core'),
i18n = require('../../../../core/server/i18n'), i18n = require('../../../../core/server/i18n'),
@ -41,6 +40,8 @@ describe('Admin Routing', function () {
}; };
} }
before(testUtils.teardown);
before(function (done) { before(function (done) {
ghost().then(function (ghostServer) { ghost().then(function (ghostServer) {
// Setup the request object with the ghost express app // Setup the request object with the ghost express app