0
Fork 0
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:
Hannah Wolfe 2022-01-21 20:37:48 +00:00
parent 9d8089a748
commit 2b6fcf9a8f
No known key found for this signature in database
GPG key ID: AB586C3B5AE5C037
2 changed files with 7 additions and 7 deletions

View file

@ -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');
});