Skip to content

Commit

Permalink
improve test case
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Jun 27, 2018
1 parent 07a5000 commit f6a86d8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/configCases/optimization/hashed-module-ids/index.js
@@ -1,10 +1,7 @@
var path = require("path");

it("should have named modules ids", function() {
for (var i = 1; i <= 5; i++) {
var expectedModuleId = "file" + i + ".js";
var moduleId = require("./files/file" + i + ".js");

expect(path.basename(moduleId)).not.toBe(expectedModuleId);
expect(moduleId).toMatch(/^[/=a-zA-Z0-9]{4,5}$/);
}
});

0 comments on commit f6a86d8

Please sign in to comment.