Skip to content

Commit

Permalink
Fix windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Apr 5, 2019
1 parent c0d0882 commit b5319c7
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 22 deletions.
42 changes: 26 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@types/micromatch": "^3.1.0",
"@types/minimist": "^1.2.0",
"@types/pretty-ms": "^4.0.0",
"acorn-bigint": "^0.3.1",
"acorn-bigint": "^0.4.0",
"acorn-dynamic-import": "^4.0.0",
"acorn-import-meta": "^1.0.0",
"acorn-jsx": "^5.0.1",
Expand All @@ -89,7 +89,7 @@
"lint-staged": "^8.1.5",
"locate-character": "^2.0.5",
"magic-string": "^0.25.2",
"markdownlint-cli": "^0.14.1",
"markdownlint-cli": "^0.15.0",
"minimist": "^1.2.0",
"mocha": "^6.0.2",
"prettier": "^1.16.4",
Expand All @@ -98,12 +98,12 @@
"remap-istanbul": "^0.13.0",
"require-relative": "^0.8.7",
"requirejs": "^2.3.6",
"rollup": "^1.8.4",
"rollup": "^1.8.0",
"rollup-plugin-alias": "^1.5.1",
"rollup-plugin-buble": "^0.19.6",
"rollup-plugin-commonjs": "^9.3.3",
"rollup-plugin-commonjs": "^9.3.4",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^4.0.1",
"rollup-plugin-node-resolve": "^4.1.0",
"rollup-plugin-replace": "^2.1.1",
"rollup-plugin-string": "^3.0.0",
"rollup-plugin-terser": "^4.0.4",
Expand Down
1 change: 1 addition & 0 deletions test/form/samples/configure-import-meta-url/_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
output: {
importMetaUrl(chunkId, moduleId) {
return `'${chunkId}/${moduleId
.replace(/\\/g, '/')
.split('/')
.slice(-2)
.join('/')}'`;
Expand Down
3 changes: 2 additions & 1 deletion test/function/samples/import-meta-url/_config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
const path = require('path');
const assert = require('assert');
const URL = require('url').URL;

module.exports = {
description: 'resolves import.meta.url',
context: {
__filename: path.resolve(__dirname, 'main.js')
},
exports(exports) {
assert.strictEqual(exports, 'file://' + path.resolve(__dirname, 'main.js'));
assert.strictEqual(exports, new URL('file:' + path.resolve(__dirname, 'main.js')).href);
}
};

0 comments on commit b5319c7

Please sign in to comment.