Skip to content

Commit

Permalink
test: fix test case for node v10
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Mar 15, 2023
1 parent 196b49f commit 0df270a
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion test/configCases/output-module/issue-16040/bar.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.bar {
color: #fff;
}
}
8 changes: 4 additions & 4 deletions test/configCases/output-module/issue-16040/bar.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { countBy } from 'lodash-es'
import { countBy } from "lodash-es";

import './bar.css'
import "./bar.css";

const result = countBy([6.1, 4.2, 6.3], Math.floor)
const result = countBy([6.1, 4.2, 6.3], Math.floor);

export default result['6']
export default result["6"];
1 change: 0 additions & 1 deletion test/configCases/output-module/issue-16040/entry.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/configCases/output-module/issue-16040/foo.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.foo {
color: #fff;
}
}
8 changes: 4 additions & 4 deletions test/configCases/output-module/issue-16040/foo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { dropRight } from 'lodash-es'
import { dropRight } from "lodash-es";

import './foo.css'
import "./foo.css";

const result = dropRight([10, 20, 30], 2)
const result = dropRight([10, 20, 30], 2);

export default result[0]
export default result[0];
2 changes: 1 addition & 1 deletion test/configCases/output-module/issue-16040/test.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
findBundle: function(i, options) {
findBundle: function (i, options) {
return ["main.mjs", "vendor.mjs", "runtime.mjs"];
}
};
5 changes: 5 additions & 0 deletions test/configCases/output-module/issue-16040/test.filter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const supportsRequireInModule = require("../../../helpers/supportsRequireInModule");

module.exports = () => {
return supportsRequireInModule();
};

0 comments on commit 0df270a

Please sign in to comment.