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:
parent
231fea4766
commit
79bf09a7c1
2 changed files with 5 additions and 1 deletions
|
@ -1,12 +1,15 @@
|
|||
// # Module tests
|
||||
// This tests using Ghost as an npm module
|
||||
var should = require('should'),
|
||||
testUtils = require('../../utils'),
|
||||
ghost = require('../../../../core'),
|
||||
i18n = require('../../../../core/server/i18n');
|
||||
|
||||
i18n.init();
|
||||
|
||||
describe('Module', function () {
|
||||
before(testUtils.teardown);
|
||||
|
||||
describe('Setup', function () {
|
||||
it('should resolve with a ghost-server instance', function (done) {
|
||||
ghost().then(function (ghostServer) {
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
var request = require('supertest'),
|
||||
should = require('should'),
|
||||
|
||||
testUtils = require('../../utils'),
|
||||
ghost = require('../../../../core'),
|
||||
i18n = require('../../../../core/server/i18n'),
|
||||
|
@ -41,6 +40,8 @@ describe('Admin Routing', function () {
|
|||
};
|
||||
}
|
||||
|
||||
before(testUtils.teardown);
|
||||
|
||||
before(function (done) {
|
||||
ghost().then(function (ghostServer) {
|
||||
// Setup the request object with the ghost express app
|
||||
|
|
Loading…
Add table
Reference in a new issue