mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -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 sinon = require('sinon');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const cheerio = require('cheerio');
|
const cheerio = require('cheerio');
|
||||||
const testUtils = require('../../../utils');
|
const testUtils = require('../../utils');
|
||||||
const localUtils = require('../utils');
|
const localUtils = require('./utils');
|
||||||
const configUtils = require('../../../utils/configUtils');
|
const configUtils = require('../../utils/configUtils');
|
||||||
const urlUtils = require('../../../utils/urlUtils');
|
const urlUtils = require('../../utils/urlUtils');
|
||||||
|
|
||||||
const routeSettingsService = require('../../../../core/server/services/route-settings');
|
const routeSettingsService = require('../../../core/server/services/route-settings');
|
||||||
const themeEngine = require('../../../../core/frontend/services/theme-engine');
|
const themeEngine = require('../../../core/frontend/services/theme-engine');
|
||||||
|
|
||||||
describe('Integration - Web - Site canary', function () {
|
describe('Integration - Web - Site canary', function () {
|
||||||
let app;
|
let app;
|
||||||
|
@ -35,7 +35,7 @@ describe('Integration - Web - Site canary', function () {
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
sinon.stub(themeEngine.getActive(), 'engine').withArgs('ghost-api').returns('canary');
|
sinon.stub(themeEngine.getActive(), 'engine').withArgs('ghost-api').returns('canary');
|
||||||
sinon.stub(themeEngine.getActive(), 'config').withArgs('posts_per_page').returns(2);
|
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');
|
postSpy = sinon.spy(postsAPI.browse, 'query');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue