add test case for case sensitive module warning

This commit is contained in:
Tobias Koppers 2016-12-14 12:03:24 +01:00
parent 324d309107
commit 351a587080
4 changed files with 12 additions and 0 deletions

View File

View File

@ -0,0 +1,8 @@
it("should return different modules with different casing", function() {
var a = require("./a");
var A = require("./A");
var b = require("./b/file.js");
var B = require("./B/file.js");
a.should.not.be.equal(A);
b.should.not.be.equal(B);
});

View File

@ -0,0 +1,4 @@
module.exports = [
[/There are multiple modules with names that only differ in casing/, /case-sensistive.A\.js/, /case-sensistive.a\.js/],
[/There are multiple modules with names that only differ in casing/, /case-sensistive.B.file\.js/, /case-sensistive.b.file\.js/]
];