Skip to content

Commit 5caa8fb

Browse files
committed
added utf-8 BOM testcases
1 parent b04f6d7 commit 5caa8fb

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

test/cases/parsing/bom/bomfile.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
body{color:#abc}

test/cases/parsing/bom/bomfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = "ok";

test/cases/parsing/bom/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
it("should load a utf-8 file with BOM", function() {
2+
var result = require("./bomfile");
3+
result.should.be.eql("ok");
4+
});
5+
6+
it("should load a css file with BOM", function() {
7+
var css = require("css-loader!./bomfile.css");
8+
css.should.be.eql("body{color:#abc}");
9+
});

test/cases/parsing/bom/typeof.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = typeof require;

0 commit comments

Comments
 (0)