From 452e58bd7c104e7964cefd28248a69de5a5fd71c Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Thu, 20 Jul 2023 21:59:55 +0200 Subject: [PATCH] FOOP --- test/integration/compile-spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/integration/compile-spec.js b/test/integration/compile-spec.js index 775956a..b0e4df1 100644 --- a/test/integration/compile-spec.js +++ b/test/integration/compile-spec.js @@ -40,7 +40,9 @@ function test(options = { it: it }) { const actualFile = path.join(__dirname, 'compilation', 'test', 'bpmnlintrc.actual.js'); const expectedFile = path.join(__dirname, 'compilation', 'test', 'bpmnlintrc.expected.js'); - const root = path.posix.normalize(process.cwd()); + const root = path.posix.normalize( + process.cwd().split(path.sep).join(path.posix.sep) + ); if (process.env.UPDATE_FIXTURES) { fs.writeFileSync(expectedFile, read(actualFile).split(root).join('$ROOT'), 'utf8');