aboutsummaryrefslogtreecommitdiffstats
path: root/test/middleware-mockserver.cjs
diff options
context:
space:
mode:
Diffstat (limited to 'test/middleware-mockserver.cjs')
-rw-r--r--test/middleware-mockserver.cjs12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/middleware-mockserver.cjs b/test/middleware-mockserver.cjs
index 5fb067627..8a175d6f2 100644
--- a/test/middleware-mockserver.cjs
+++ b/test/middleware-mockserver.cjs
@@ -257,7 +257,7 @@ const mocks = {
resp.writeHead( 200, {
"Content-Type": "text/html",
"Content-Security-Policy": "default-src 'self'; require-trusted-types-for 'script'; " +
- "report-uri /base/test/data/mock.php?action=cspLog"
+ "report-uri /test/data/mock.php?action=cspLog"
} );
const body = fs.readFileSync( `${ __dirname }/data/csp.include.html` ).toString();
resp.end( body );
@@ -267,7 +267,7 @@ const mocks = {
resp.writeHead( 200, {
"Content-Type": "text/html",
"Content-Security-Policy": "script-src 'nonce-jquery+hardcoded+nonce'; " +
- "report-uri /base/test/data/mock.php?action=cspLog"
+ "report-uri /test/data/mock.php?action=cspLog"
} );
const body = fs.readFileSync(
`${ __dirname }/data/csp-nonce${ testParam }.html` ).toString();
@@ -277,7 +277,7 @@ const mocks = {
resp.writeHead( 200, {
"Content-Type": "text/html",
"Content-Security-Policy": "script-src 'self'; " +
- "report-uri /base/test/data/mock.php?action=cspLog"
+ "report-uri /test/data/mock.php?action=cspLog"
} );
const body = fs.readFileSync(
`${ __dirname }/data/csp-ajax-script.html` ).toString();
@@ -297,7 +297,7 @@ const mocks = {
resp.writeHead( 200, {
"Content-Type": "text/html",
"Content-Security-Policy": "require-trusted-types-for 'script'; " +
- "report-uri /base/test/data/mock.php?action=cspLog"
+ "report-uri /test/data/mock.php?action=cspLog"
} );
const body = fs.readFileSync( `${ __dirname }/data/trusted-html.html` ).toString();
resp.end( body );
@@ -306,7 +306,7 @@ const mocks = {
resp.writeHead( 200, {
"Content-Type": "text/html",
"Content-Security-Policy": "require-trusted-types-for 'script'; " +
- "report-uri /base/test/data/mock.php?action=cspLog"
+ "report-uri /test/data/mock.php?action=cspLog"
} );
const body = fs.readFileSync(
`${ __dirname }/data/trusted-types-attributes.html` ).toString();
@@ -363,7 +363,7 @@ function MockserverMiddlewareFactory() {
*/
return function( req, resp, next ) {
const parsed = url.parse( req.url, /* parseQuery */ true );
- let path = parsed.pathname.replace( /^\/base\//, "" );
+ let path = parsed.pathname;
const query = parsed.query;
const subReq = Object.assign( Object.create( req ), {
query: query,