From 4c0d49ec610761627f4d5d25dc2fc7f82df4c4ce Mon Sep 17 00:00:00 2001 From: alxndrsn Date: Tue, 2 Jun 2026 11:27:06 +0000 Subject: [PATCH] test/nginx: tidy up * more specific param name * remove duplicate comment markers --- test/nginx/src/mocha/nginx.spec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/nginx/src/mocha/nginx.spec.js b/test/nginx/src/mocha/nginx.spec.js index affefe6fe..1afe6e199 100644 --- a/test/nginx/src/mocha/nginx.spec.js +++ b/test/nginx/src/mocha/nginx.spec.js @@ -592,19 +592,19 @@ function standardTestSuite({ fetchHttp, fetchHttp6, apiFetch, apiFetch6, forward '/-/api', '/-/preview', '/-/edit/enketoid', - ].forEach(request => { - it(`should not redirect ${request} to central-frontend`, async () => { + ].forEach(path => { + it(`should not redirect ${path} to central-frontend`, async () => { // when - const res = await apiFetch(request); + const res = await apiFetch(path); // then assert.equal(res.status, 200); assert.equal(await res.text(), 'OK'); assertSecurityHeaders(res, { csp:'enketo' }); - // // and + // and await assertEnketoReceived( - { method:'GET', path: request }, + { method:'GET', path }, ); }); });