Skip to content

Commit 41a9cf8

Browse files
committed
chore(test): Fixes failing unit test
1 parent 63eaf6a commit 41a9cf8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/loaderTest.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,31 +38,31 @@ describe("loader", function() {
3838
loader.call({
3939
minimize: true
4040
}, '<!-- comment --><h3 customAttr="">#{number} {customer}</h3>\n<p> {title} </p>\n\t <!-- comment --> <img src="image.png" />').should.be.eql(
41-
'module.exports = "<h3 customattr=\\"\\">#{number} {customer}</h3> <p> {title} </p> <img src=\\"\" + require("./image.png") + "\\\"/>";'
41+
'module.exports = "<h3 customattr=\\"\\">#{number} {customer}</h3> <p> {title} </p> <img src=\" + require("./image.png") + \" />";'
4242
);
4343
});
4444
// https://github.com/webpack/webpack/issues/752
4545
it("should not remove attributes by default", function() {
4646
loader.call({
4747
minimize: true
4848
}, '<input type="text" />').should.be.eql(
49-
'module.exports = "<input type=\\"text\\"/>";'
49+
'module.exports = "<input type=text />";'
5050
);
5151
});
5252
it("should preserve comments", function() {
5353
loader.call({
5454
minimize: true,
5555
query: "?-removeComments"
5656
}, '<!-- comment --><h3 customAttr="">#{number} {customer}</h3><p>{title}</p><!-- comment --><img src="image.png" />').should.be.eql(
57-
'module.exports = "<!-- comment --><h3 customattr=\\"\\">#{number} {customer}</h3><p>{title}</p><!-- comment --><img src=\\"\" + require("./image.png") + "\\\"/>";'
57+
'module.exports = "<!-- comment --><h3 customattr=\\"\\">#{number} {customer}</h3><p>{title}</p><!-- comment --><img src=\" + require("./image.png") + \" />";'
5858
);
5959
});
6060
it("should treat attributes as case sensitive", function() {
6161
loader.call({
6262
minimize: true,
6363
query: "?caseSensitive"
6464
}, '<!-- comment --><h3 customAttr="">#{number} {customer}</h3><p>{title}</p><!-- comment --><img src="image.png" />').should.be.eql(
65-
'module.exports = "<h3 customAttr=\\"\\">#{number} {customer}</h3><p>{title}</p><img src=\\"\" + require("./image.png") + "\\\"/>";'
65+
'module.exports = "<h3 customAttr=\\"\\">#{number} {customer}</h3><p>{title}</p><img src=\" + require("./image.png") + \" />";'
6666
);
6767
});
6868
it("should accept complex options via a webpack config property", function() {

0 commit comments

Comments
 (0)