mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Improved naming of mock express tests
- these used incorrect case and unnecessary nesting - they are now consistently named with our preferred patterns
This commit is contained in:
parent
9d8089a748
commit
2b6fcf9a8f
2 changed files with 7 additions and 7 deletions
|
@ -2,13 +2,13 @@ const should = require('should');
|
|||
const sinon = require('sinon');
|
||||
const _ = require('lodash');
|
||||
const cheerio = require('cheerio');
|
||||
const testUtils = require('../../../utils');
|
||||
const localUtils = require('../utils');
|
||||
const configUtils = require('../../../utils/configUtils');
|
||||
const urlUtils = require('../../../utils/urlUtils');
|
||||
const testUtils = require('../../utils');
|
||||
const localUtils = require('./utils');
|
||||
const configUtils = require('../../utils/configUtils');
|
||||
const urlUtils = require('../../utils/urlUtils');
|
||||
|
||||
const routeSettingsService = require('../../../../core/server/services/route-settings');
|
||||
const themeEngine = require('../../../../core/frontend/services/theme-engine');
|
||||
const routeSettingsService = require('../../../core/server/services/route-settings');
|
||||
const themeEngine = require('../../../core/frontend/services/theme-engine');
|
||||
|
||||
describe('Integration - Web - Site canary', function () {
|
||||
let app;
|
||||
|
@ -35,7 +35,7 @@ describe('Integration - Web - Site canary', function () {
|
|||
beforeEach(function () {
|
||||
sinon.stub(themeEngine.getActive(), 'engine').withArgs('ghost-api').returns('canary');
|
||||
sinon.stub(themeEngine.getActive(), 'config').withArgs('posts_per_page').returns(2);
|
||||
const postsAPI = require('../../../../core/server/api/canary/posts-public');
|
||||
const postsAPI = require('../../../core/server/api/canary/posts-public');
|
||||
postSpy = sinon.spy(postsAPI.browse, 'query');
|
||||
});
|
||||
|
Loading…
Reference in a new issue