Skip to content

Commit c71d23a

Browse files
committed
[INTERNAL] Fix tests on Windows
Require actually takes non-posix paths
1 parent 8fffb17 commit c71d23a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lib/server/middleware/middlewareRepository.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test("getMiddleware: Unknown middleware", async (t) => {
2020
});
2121

2222
test("addMiddleware", async (t) => {
23-
const cspModulePath = path.posix.join(__dirname, "..", "..", "..", "..", "lib", "middleware", "csp");
23+
const cspModulePath = path.join(__dirname, "..", "..", "..", "..", "lib", "middleware", "csp");
2424
middlewareRepository.addMiddleware({
2525
name: "🐠",
2626
specVersion: "2.0",

0 commit comments

Comments
 (0)