mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 04:13:30 +03:00
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:
parent
4a67ea5546
commit
a5c8549616
@ -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;
|
@ -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
|
||||
|
@ -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');
|
Loading…
Reference in New Issue
Block a user