Skip to content

Commit 1bd81c9

Browse files
committed
Add tests to confirm fix for webpack/webpack#752
1 parent 1be7593 commit 1bd81c9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/loaderTest.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ describe("loader", function() {
4141
'module.exports = "<h3 customattr=\\"\\">#{number} {customer}</h3> <p> {title} </p> <img src=\\"\" + require("./image.png") + "\\\"/>";'
4242
);
4343
});
44+
// https://github.com/webpack/webpack/issues/752
45+
it("should not remove attributes by default", function() {
46+
loader.call({
47+
minimize: true
48+
}, '<input type="text" />').should.be.eql(
49+
'module.exports = "<input type=\\"text\\"/>";'
50+
);
51+
});
4452
it("should preserve comments", function() {
4553
loader.call({
4654
minimize: true,

0 commit comments

Comments
 (0)