Skip to content

Commit 1c7f992

Browse files
committed
fix formatting in AmdMainTemplatePlugin.test
1 parent 3515fdd commit 1c7f992

File tree

1 file changed

+17
-21
lines changed

1 file changed

+17
-21
lines changed

test/AmdMainTemplatePlugin.test.js

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,22 @@ describe("AmdMainTemplatePlugin", () => {
2727
beforeEach(() => {
2828
env = {
2929
modulesListWithExternals: [{
30-
id: "module-1",
31-
external: true,
32-
request: {
33-
amd: "external-amd-module"
34-
}
35-
},
36-
{
37-
id: "module-2",
38-
external: true,
39-
request: "external-non-amd-module"
40-
},
41-
{
42-
id: "module-3",
43-
external: true
44-
},
45-
{
46-
id: "module-4",
47-
external: false
30+
id: "module-1",
31+
external: true,
32+
request: {
33+
amd: "external-amd-module"
4834
}
49-
]
35+
}, {
36+
id: "module-2",
37+
external: true,
38+
request: "external-non-amd-module"
39+
}, {
40+
id: "module-3",
41+
external: true
42+
}, {
43+
id: "module-4",
44+
external: false
45+
}]
5046
};
5147
});
5248

@@ -112,7 +108,7 @@ describe("AmdMainTemplatePlugin", () => {
112108
it("creates source wrapper with callback only", () => {
113109
const source = env.eventBinding.handler("moduleSource()", env.chunk, "bar");
114110
source.should.be.instanceof(ConcatSource);
115-
source.source().should.be.exactly('define(function() { return moduleSource()});');
111+
source.source().should.be.exactly("define(function() { return moduleSource()});");
116112
});
117113
});
118114
});
@@ -150,6 +146,6 @@ describe("AmdMainTemplatePlugin", () => {
150146
hash.update.secondCall.args[0].should.be.exactly("foo");
151147
});
152148
});
153-
})
149+
});
154150
});
155151
});

0 commit comments

Comments
 (0)