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