From b543801856618838eaaa6c1bc6671a0223bb3ac2 Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Tue, 16 Apr 2024 12:27:33 +0100 Subject: [PATCH] squash windows test bugs JSONata complains about invalid escape seq `\\`, so use posix format instead --- test/nodes/core/storage/10-file_spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/nodes/core/storage/10-file_spec.js b/test/nodes/core/storage/10-file_spec.js index 57e32985c..d1a9e1164 100644 --- a/test/nodes/core/storage/10-file_spec.js +++ b/test/nodes/core/storage/10-file_spec.js @@ -43,6 +43,7 @@ describe('file Nodes', function() { var relativePathToFile = "50-file-test-file.txt"; var resourcesDir = path.join(__dirname,"..","..","..","resources"); + resourcesDir = resourcesDir.replace(/\\/g, '/'); // Windows var fileToTest = path.join(resourcesDir,relativePathToFile); var wait = 250; @@ -240,7 +241,7 @@ describe('file Nodes', function() { f.should.equal("Line1\nLine2\nLine3\nLine4"); } else { - f.should.have.length(23); + f.should.have.length(26); f.should.equal("Line1\r\nLine2\r\nLine3\r\nLine4"); } done(); @@ -1220,6 +1221,7 @@ describe('file Nodes', function() { var relativePathToFile = "50-file-test-file.txt"; var resourcesDir = path.join(__dirname,"..","..","..","resources"); + resourcesDir = resourcesDir.replace(/\\/g, '/'); // Windows var fileToTest = path.join(resourcesDir,relativePathToFile); var fileToTest2 = "\t"+path.join(resourcesDir,relativePathToFile)+"\r\n"; var wait = 150;