Skip to content

Commit 3ea3fda

Browse files
committed
fix unit test
1 parent 5941ab0 commit 3ea3fda

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎test/AmdMainTemplatePlugin.unittest.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,12 @@ describe("AmdMainTemplatePlugin", () => {
9696

9797
describe("with only local dependencies", () => {
9898
beforeEach(() => {
99+
const externalFlag = {
100+
external: false
101+
};
102+
const noExternals = env.modulesListWithExternals.map((module) => Object.assign({}, module, externalFlag));
99103
env.chunk = {
100-
getModules: () => env.modulesListWithExternals
104+
getModules: () => noExternals
101105
};
102106
env.eventBinding = setupPluginAndGetEventBinding();
103107
});

0 commit comments

Comments
 (0)