diff --git a/package.json b/package.json index 59f24e9..31b376c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cypress-xml-reporter", - "version": "1.0.1", + "version": "1.0.2", "description": "A JUnit XML reporter for Cypress that includes screenshots, videos, and logs.", "main": "src/reporter.js", "scripts": { diff --git a/src/reporter.js b/src/reporter.js index bb85975..aa594c7 100644 --- a/src/reporter.js +++ b/src/reporter.js @@ -140,7 +140,9 @@ function createTestRecord(test, specRelativePath) { } function normalizePath(pathString) { - return pathString.split(path.sep).join('/'); + if (path.sep !== '/') { + return pathString.replaceAll(path.sep, '/'); + } } function CypressXML(runner, options) { diff --git a/tests/test.desc-desc.js b/tests/test.desc-desc.js index 7eb8f71..3fff023 100644 --- a/tests/test.desc-desc.js +++ b/tests/test.desc-desc.js @@ -2,7 +2,6 @@ const expect = require("chai").expect; const parseString = require('xml2js').parseString; const path = require('path'); const fs = require('fs'); -const helpers = require('./test_helper'); /** * Setting @@ -41,7 +40,7 @@ describe(testName, () => { expect(suites[0].$.tests).to.equal('0'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); }); describe('TEST1', () => { @@ -52,11 +51,11 @@ describe(testName, () => { expect(suites[1].$.tests).to.equal('3'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); it('System-out', () => { var systemout = suites[1]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(videoFile)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+videoFile.replaceAll(path.sep, '/')+']]'); }); describe('Testcases', ()=> { var testcases; @@ -74,7 +73,7 @@ describe(testName, () => { }); it('"case3" Failure', () => { var systemout = testcases[2]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(screenshotFile1)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+screenshotFile1.replaceAll(path.sep, '/')+']]'); }) }); }); @@ -86,11 +85,11 @@ describe(testName, () => { expect(suites[2].$.tests).to.equal('3'); }); it('File Name', () => { - expect(suites[2].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[2].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); it('System-out', () => { var systemout = suites[2]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(videoFile)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+videoFile.replaceAll(path.sep, '/')+']]'); }); describe('Testcases', ()=> { var testcases; @@ -108,7 +107,7 @@ describe(testName, () => { }); it('"case3" Failure', () => { var systemout = testcases[2]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(screenshotFile2)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+screenshotFile2.replaceAll(path.sep, '/')+']]'); }) }); }); diff --git a/tests/test.desc-fixture-hook-failure.js b/tests/test.desc-fixture-hook-failure.js index 6df6105..1fd93f1 100644 --- a/tests/test.desc-fixture-hook-failure.js +++ b/tests/test.desc-fixture-hook-failure.js @@ -2,7 +2,6 @@ const expect = require("chai").expect; const parseString = require('xml2js').parseString; const path = require('path'); const fs = require('fs'); -const helpers = require('./test_helper'); /** * Setting @@ -55,7 +54,7 @@ describe(testName, () => { expect(suites[0].$.tests).to.equal('0'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); }); }); \ No newline at end of file diff --git a/tests/test.desc-nest-desc.js b/tests/test.desc-nest-desc.js index 19ca9ec..cda0972 100644 --- a/tests/test.desc-nest-desc.js +++ b/tests/test.desc-nest-desc.js @@ -2,8 +2,6 @@ const expect = require("chai").expect; const parseString = require('xml2js').parseString; const path = require('path'); const fs = require('fs'); -const helpers = require('./test_helper'); - /** * Setting @@ -57,7 +55,7 @@ describe(testName, () => { expect(suites[0].$.tests).to.equal('0'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); }); describe('TEST1', () => { @@ -68,11 +66,11 @@ describe(testName, () => { expect(suites[1].$.tests).to.equal('6'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); it('System-out', () => { var systemout = suites[1]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(videoFile)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+videoFile.replaceAll(path.sep, '/')+']]'); }); describe('Testcases', ()=> { var testcases; @@ -99,7 +97,7 @@ describe(testName, () => { }); it('"NEST -- case3" Failure', () => { var systemout = testcases[5]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(screenshotFile)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+screenshotFile.replaceAll(path.sep, '/')+']]'); }) }); }); diff --git a/tests/test.desc-nest-nest-desc.js b/tests/test.desc-nest-nest-desc.js index 025425b..a60ce0f 100644 --- a/tests/test.desc-nest-nest-desc.js +++ b/tests/test.desc-nest-nest-desc.js @@ -2,7 +2,6 @@ const expect = require("chai").expect; const parseString = require('xml2js').parseString; const path = require('path'); const fs = require('fs'); -const helpers = require('./test_helper'); /** * Setting @@ -58,7 +57,7 @@ describe(testName, () => { expect(suites[0].$.tests).to.equal('0'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); }); describe('TEST1', () => { @@ -69,11 +68,11 @@ describe(testName, () => { expect(suites[1].$.tests).to.equal('9'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); it('System-out', () => { var systemout = suites[1]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(videoFile)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+videoFile.replaceAll(path.sep, '/')+']]'); }); describe('Testcases', ()=> { var testcases; @@ -91,7 +90,7 @@ describe(testName, () => { }); it('"case3" Failure', () => { var systemout = testcases[2]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(screenshotFile1)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+screenshotFile1.replaceAll(path.sep, '/')+']]'); }); it('"NEST1 -- case1" name', () => { expect(testcases[3].$.name).to.equal('NEST1 -- case1'); @@ -104,7 +103,7 @@ describe(testName, () => { }); it('"NEST1 -- case3" Failure', () => { var systemout = testcases[5]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(screenshotFile2)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+screenshotFile2.replaceAll(path.sep, '/')+']]'); }); it('"NEST1 -- NEST2 -- case1" name', () => { expect(testcases[6].$.name).to.equal('NEST1 -- NEST2 -- case1'); @@ -117,7 +116,7 @@ describe(testName, () => { }); it('"NEST1 -- NEST2 -- case3" Failure', () => { var systemout = testcases[8]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(screenshotFile3)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+screenshotFile3.replaceAll(path.sep, '/')+']]'); }); }); diff --git a/tests/test.desc-nofailures.js b/tests/test.desc-nofailures.js index 18f03b6..429d8c6 100644 --- a/tests/test.desc-nofailures.js +++ b/tests/test.desc-nofailures.js @@ -2,8 +2,6 @@ const expect = require("chai").expect; const parseString = require('xml2js').parseString; const path = require('path'); const fs = require('fs'); -const helpers = require('./test_helper'); - /** * Setting @@ -55,7 +53,7 @@ describe(testName, () => { expect(suites[0].$.tests).to.equal('0'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); }); describe('TEST1', () => { @@ -66,7 +64,7 @@ describe(testName, () => { expect(suites[1].$.tests).to.equal('3'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); it('System-out', () => { var systemout = suites[1]['system-out'][0]; diff --git a/tests/test.desc-nofailures.log.js b/tests/test.desc-nofailures.log.js index b4d4999..dd123f6 100644 --- a/tests/test.desc-nofailures.log.js +++ b/tests/test.desc-nofailures.log.js @@ -2,8 +2,6 @@ const expect = require("chai").expect; const parseString = require('xml2js').parseString; const path = require('path'); const fs = require('fs'); -const helpers = require('./test_helper'); - /** * Setting @@ -57,7 +55,7 @@ describe(testName, () => { expect(suites[0].$.tests).to.equal('0'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); }); describe('TEST1', () => { @@ -68,7 +66,7 @@ describe(testName, () => { expect(suites[1].$.tests).to.equal('3'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); it('System-out', () => { var systemout = suites[1]['system-out'][0]; diff --git a/tests/test.desc-pending.js b/tests/test.desc-pending.js index f2d19c7..cface1d 100644 --- a/tests/test.desc-pending.js +++ b/tests/test.desc-pending.js @@ -2,7 +2,6 @@ const expect = require("chai").expect; const parseString = require('xml2js').parseString; const path = require('path'); const fs = require('fs'); -const helpers = require('./test_helper'); /** * Setting @@ -56,7 +55,7 @@ describe(testName, () => { expect(suites[0].$.tests).to.equal('0'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); }); describe('TEST1', () => { @@ -73,11 +72,11 @@ describe(testName, () => { expect(suites[1].$.skipped).to.equal('3'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); it('System-out', () => { var systemout = suites[1]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(videoFile)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+videoFile.replaceAll(path.sep, '/')+']]'); }); describe('Testcases', ()=> { var testcases; diff --git a/tests/test.desc-testname-chars.js b/tests/test.desc-testname-chars.js index 206f21f..9c578ce 100644 --- a/tests/test.desc-testname-chars.js +++ b/tests/test.desc-testname-chars.js @@ -2,7 +2,6 @@ const expect = require("chai").expect; const parseString = require('xml2js').parseString; const path = require('path'); const fs = require('fs'); -const helpers = require('./test_helper'); /** * Setting @@ -56,7 +55,7 @@ describe(testName, () => { expect(suites[0].$.tests).to.equal('0'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); }); describe('"TEST SUITE" with Quotes and Slash', () => { @@ -67,11 +66,11 @@ describe(testName, () => { expect(suites[1].$.tests).to.equal('3'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); it('System-out', () => { var systemout = suites[1]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(videoFile)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+videoFile.replaceAll(path.sep, '/')+']]'); }); describe('Testcases', ()=> { var testcases; @@ -89,7 +88,7 @@ describe(testName, () => { }); it('"case3" name with quotes and slash with failure', () => { var systemout = testcases[2]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(screenshotFile)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+screenshotFile.replaceAll(path.sep, '/')+']]'); }) }); }); diff --git a/tests/test.desc.js b/tests/test.desc.js index 15cb843..c729b24 100644 --- a/tests/test.desc.js +++ b/tests/test.desc.js @@ -2,7 +2,6 @@ const expect = require("chai").expect; const parseString = require('xml2js').parseString; const path = require('path'); const fs = require('fs'); -const helpers = require('./test_helper'); /** * Setting @@ -56,7 +55,7 @@ describe(testName, () => { expect(suites[0].$.tests).to.equal('0'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); }); describe('TEST1', () => { @@ -67,11 +66,11 @@ describe(testName, () => { expect(suites[1].$.tests).to.equal('3'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); it('System-out', () => { var systemout = suites[1]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(videoFile)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+videoFile.replaceAll(path.sep, '/')+']]'); }); describe('Testcases', ()=> { var testcases; @@ -89,7 +88,7 @@ describe(testName, () => { }); it('"case3" Failure', () => { var systemout = testcases[2]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(screenshotFile)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+screenshotFile.replaceAll(path.sep, '/')+']]'); }) }); }); diff --git a/tests/test.desc.log.js b/tests/test.desc.log.js index d9a6a72..26f77be 100644 --- a/tests/test.desc.log.js +++ b/tests/test.desc.log.js @@ -2,7 +2,6 @@ const expect = require("chai").expect; const parseString = require('xml2js').parseString; const path = require('path'); const fs = require('fs'); -const helpers = require('./test_helper'); /** * Setting @@ -20,7 +19,7 @@ const screenshotFile = path.join('cypress', 'screenshots', testDataName, 'TEST1 // Remove "spaces" and "newlines" variants const logContent = ":TEST1->case1TEST1->case2TEST1->case3cy:command(X):assertexpected**1**toequal**2**Actual:1Expected:2"; -const systemOut = testFile+logContent+"[[ATTACHMENT|"+helpers.normalizePath(videoFile)+"]]"; +const systemOut = testFile+logContent+"[[ATTACHMENT|"+videoFile.replaceAll(path.sep, '/')+"]]"; /** * Globals @@ -60,7 +59,7 @@ describe(testName, () => { expect(suites[0].$.tests).to.equal('0'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); }); describe('TEST1', () => { @@ -71,7 +70,7 @@ describe(testName, () => { expect(suites[1].$.tests).to.equal('3'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); it('System-out', () => { var systemout = suites[1]['system-out'][0]; @@ -100,7 +99,7 @@ describe(testName, () => { }); it('"case3" Failure System-out', () => { var systemout = testcases[2]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(screenshotFile)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+screenshotFile.replaceAll(path.sep, '/')+']]'); }); }); }); diff --git a/tests/test.folder-desc.js b/tests/test.folder-desc.js index fcaee67..114f64c 100644 --- a/tests/test.folder-desc.js +++ b/tests/test.folder-desc.js @@ -2,7 +2,6 @@ const expect = require("chai").expect; const parseString = require('xml2js').parseString; const path = require('path'); const fs = require('fs'); -const helpers = require('./test_helper'); /** * Setting @@ -56,7 +55,7 @@ describe(testName, () => { expect(suites[0].$.tests).to.equal('0'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); }); describe('TEST1', () => { @@ -67,11 +66,11 @@ describe(testName, () => { expect(suites[1].$.tests).to.equal('3'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); it('System-out', () => { var systemout = suites[1]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(videoFile)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+videoFile.replaceAll(path.sep, '/')+']]'); }); describe('Testcases', ()=> { var testcases; @@ -89,7 +88,7 @@ describe(testName, () => { }); it('"case3" Failure', () => { var systemout = testcases[2]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(screenshotFile)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+screenshotFile.replaceAll(path.sep, '/')+']]'); }) }); }); diff --git a/tests/test.root-desc.js b/tests/test.root-desc.js index 118cf69..31d85f7 100644 --- a/tests/test.root-desc.js +++ b/tests/test.root-desc.js @@ -2,7 +2,6 @@ const expect = require("chai").expect; const parseString = require('xml2js').parseString; const path = require('path'); const fs = require('fs'); -const helpers = require('./test_helper'); /** * Setting @@ -57,11 +56,11 @@ describe(testName, () => { expect(suites[0].$.tests).to.equal('3'); }); it('File Name', () => { - expect(suites[0].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[0].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); it('System-out', () => { var systemout = suites[0]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(videoFile)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+videoFile.replaceAll(path.sep, '/')+']]'); }); describe('Testcases', ()=> { var testcases; @@ -79,7 +78,7 @@ describe(testName, () => { }); it('"case3" Failure', () => { var systemout = testcases[2]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(screenshotFile1)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+screenshotFile1.replaceAll(path.sep, '/')+']]'); }) }); }); @@ -91,11 +90,11 @@ describe(testName, () => { expect(suites[1].$.tests).to.equal('3'); }); it('File Name', () => { - expect(suites[1].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[1].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); it('System-out', () => { var systemout = suites[1]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(videoFile)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+videoFile.replaceAll(path.sep, '/')+']]'); }); describe('Testcases', ()=> { var testcases; @@ -113,7 +112,7 @@ describe(testName, () => { }); it('"case3" Failure', () => { var systemout = testcases[2]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(screenshotFile2)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+screenshotFile2.replaceAll(path.sep, '/')+']]'); }) }); }); diff --git a/tests/test.root.js b/tests/test.root.js index 6984217..d9985a9 100644 --- a/tests/test.root.js +++ b/tests/test.root.js @@ -2,7 +2,6 @@ const expect = require("chai").expect; const parseString = require('xml2js').parseString; const path = require('path'); const fs = require('fs'); -const helpers = require('./test_helper'); /** * Setting @@ -56,11 +55,11 @@ describe(testName, () => { expect(suites[0].$.tests).to.equal('3'); }); it('File Name', () => { - expect(suites[0].$.file).to.equal(helpers.normalizePath(testFile)); + expect(suites[0].$.file).to.equal(testFile.replaceAll(path.sep, '/')); }); it('System-out', () => { var systemout = suites[0]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(videoFile)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+videoFile.replaceAll(path.sep, '/')+']]'); }); describe('Testcases', ()=> { var testcases; @@ -78,7 +77,7 @@ describe(testName, () => { }); it('"case3" Failure', () => { var systemout = testcases[2]['system-out'][0]; - expect(systemout).to.equal('[[ATTACHMENT|'+helpers.normalizePath(screenshotFile)+']]'); + expect(systemout).to.equal('[[ATTACHMENT|'+screenshotFile.replaceAll(path.sep, '/')+']]'); }) }); }); diff --git a/tests/test_helper.js b/tests/test_helper.js deleted file mode 100644 index ceb9a45..0000000 --- a/tests/test_helper.js +++ /dev/null @@ -1,10 +0,0 @@ -// tests/test_helpers.js -const path = require('path'); - -function normalizePath(pathString) { - return pathString.split(path.sep).join('/'); -} - -module.exports = { - normalizePath -} \ No newline at end of file