Moved remaining shared mw tests into correct folder

- make sure the test structure follows the main structure for these files
This commit is contained in:
Hannah Wolfe 2020-04-23 19:38:12 +01:00
parent 4a67ea5546
commit a5c8549616
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
var should = require('should'),
sinon = require('sinon'),
cacheControl = require('../../../../core/server/web/shared/middlewares/cache-control');
cacheControl = require('../../../../../core/server/web/shared/middlewares/cache-control');
describe('Middleware: cacheControl', function () {
var res;

View File

@ -1,6 +1,6 @@
var should = require('should'),
sinon = require('sinon'),
uncapitalise = require('../../../../core/server/web/shared/middlewares/uncapitalise');
uncapitalise = require('../../../../../core/server/web/shared/middlewares/uncapitalise');
// NOTE: all urls will have had trailing slashes added before uncapitalise is called

View File

@ -1,8 +1,8 @@
const should = require('should');
const sinon = require('sinon');
const rewire = require('rewire');
const urlUtils = require('../../../utils/urlUtils');
const urlRedirects = rewire('../../../../core/server/web/shared/middlewares/url-redirects');
const urlUtils = require('../../../../utils/urlUtils');
const urlRedirects = rewire('../../../../../core/server/web/shared/middlewares/url-redirects');
const {frontendSSLRedirect, adminSSLAndHostRedirect} = urlRedirects;
const getAdminRedirectUrl = urlRedirects.__get__('_private.getAdminRedirectUrl');
const getFrontendRedirectUrl = urlRedirects.__get__('_private.getFrontendRedirectUrl');