Skip to content

Commit 351a587

Browse files
committed
add test case for case sensitive module warning
1 parent 324d309 commit 351a587

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

test/cases/errors/case-sensistive/a.js

Whitespace-only changes.

test/cases/errors/case-sensistive/b/file.js

Whitespace-only changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
it("should return different modules with different casing", function() {
2+
var a = require("./a");
3+
var A = require("./A");
4+
var b = require("./b/file.js");
5+
var B = require("./B/file.js");
6+
a.should.not.be.equal(A);
7+
b.should.not.be.equal(B);
8+
});
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = [
2+
[/There are multiple modules with names that only differ in casing/, /case-sensistive.A\.js/, /case-sensistive.a\.js/],
3+
[/There are multiple modules with names that only differ in casing/, /case-sensistive.B.file\.js/, /case-sensistive.b.file\.js/]
4+
];

0 commit comments

Comments
 (0)