Skip to content

Commit

Permalink
Add tests to confirm fix for webpack/webpack#752
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed Feb 15, 2016
1 parent 1be7593 commit 1bd81c9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/loaderTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ describe("loader", function() {
'module.exports = "<h3 customattr=\\"\\">#{number} {customer}</h3> <p> {title} </p> <img src=\\"\" + require("./image.png") + "\\\"/>";'
);
});
// https://github.com/webpack/webpack/issues/752
it("should not remove attributes by default", function() {
loader.call({
minimize: true
}, '<input type="text" />').should.be.eql(
'module.exports = "<input type=\\"text\\"/>";'
);
});
it("should preserve comments", function() {
loader.call({
minimize: true,
Expand Down

0 comments on commit 1bd81c9

Please sign in to comment.