Skip to content

Commit 0c4ab4a

Browse files
committed
Update mocked chunk in tests
1 parent 5bda245 commit 0c4ab4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/AmdMainTemplatePlugin.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe("AmdMainTemplatePlugin", () => {
6767
describe("with name", () => {
6868
beforeEach(() => {
6969
env.chunk = {
70-
modules: env.modulesListWithExternals
70+
getModules: () => env.modulesListWithExternals
7171
};
7272
env.eventBinding = setupPluginAndGetEventBinding("foo");
7373
});
@@ -82,7 +82,7 @@ describe("AmdMainTemplatePlugin", () => {
8282
describe("with external dependencies", () => {
8383
beforeEach(() => {
8484
env.chunk = {
85-
modules: env.modulesListWithExternals
85+
getModules: () => env.modulesListWithExternals
8686
};
8787
env.eventBinding = setupPluginAndGetEventBinding();
8888
});
@@ -101,7 +101,7 @@ describe("AmdMainTemplatePlugin", () => {
101101
};
102102
const noExternals = env.modulesListWithExternals.map((module) => Object.assign(module, externalFlag));
103103
env.chunk = {
104-
modules: noExternals
104+
getModules: () => env.modulesListWithExternals
105105
};
106106
env.eventBinding = setupPluginAndGetEventBinding();
107107
});

0 commit comments

Comments
 (0)