Skip to content

Commit

Permalink
test: make sure tests run on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Jul 21, 2023
1 parent 58e9332 commit d85d82e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/spec/support/compile-config-spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const os = require('os');

const { expect } = require('chai');

const NodeResolver = require('../../../lib/resolver/node-resolver');
Expand Down Expand Up @@ -96,11 +98,11 @@ describe('support/compile-config', function() {
},
function __resolve(path) {
if (path === 'bpmnlint-plugin-foreign/package.json') {
return 'C:\\bpmnlint-plugin-foreign\\package.json';
return os.platform() === 'win32' ? 'C:\\bpmnlint-plugin-foreign\\package.json' : '/bpmnlint-plugin-foreign/package.json';
}

if (path === 'bpmnlint-plugin-foreign') {
return 'C:\\bpmnlint-plugin-foreign\\lib\\index.js';
return os.platform() === 'win32' ? 'C:\\bpmnlint-plugin-foreign\\lib\\index.js' : '/bpmnlint-plugin-foreign/lib/index.js';
}


Expand Down

0 comments on commit d85d82e

Please sign in to comment.