mirror of https://github.com/webpack/webpack.git
lint fix
This commit is contained in:
parent
fbfe2069bf
commit
552d05e268
|
@ -9,19 +9,33 @@ const Compilation = require("../lib/Compilation");
|
||||||
describe("Compilation", () => {
|
describe("Compilation", () => {
|
||||||
describe('sortModules', () => {
|
describe('sortModules', () => {
|
||||||
it('should sort modules by index', () => {
|
it('should sort modules by index', () => {
|
||||||
let modules = [
|
let modules = [{
|
||||||
{index: 5},
|
index: 5
|
||||||
{index: 4},
|
},
|
||||||
{index: 8},
|
{
|
||||||
{index: 1},
|
index: 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
index: 8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
index: 1
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
Compilation.prototype.sortModules(modules);
|
Compilation.prototype.sortModules(modules);
|
||||||
modules.should.match([
|
modules.should.match([{
|
||||||
{index: 1},
|
index: 1
|
||||||
{index: 4},
|
},
|
||||||
{index: 5},
|
{
|
||||||
{index: 8},
|
index: 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
index: 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
index: 8
|
||||||
|
},
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue