@@ -38,31 +38,31 @@ describe("loader", function() {
38
38
loader . call ( {
39
39
minimize : true
40
40
} , '<!-- 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") + \" />";'
42
42
) ;
43
43
} ) ;
44
44
// https://github.com/webpack/webpack/issues/752
45
45
it ( "should not remove attributes by default" , function ( ) {
46
46
loader . call ( {
47
47
minimize : true
48
48
} , '<input type="text" />' ) . should . be . eql (
49
- 'module.exports = "<input type=\\" text\\" />";'
49
+ 'module.exports = "<input type=text />";'
50
50
) ;
51
51
} ) ;
52
52
it ( "should preserve comments" , function ( ) {
53
53
loader . call ( {
54
54
minimize : true ,
55
55
query : "?-removeComments"
56
56
} , '<!-- 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") + \" />";'
58
58
) ;
59
59
} ) ;
60
60
it ( "should treat attributes as case sensitive" , function ( ) {
61
61
loader . call ( {
62
62
minimize : true ,
63
63
query : "?caseSensitive"
64
64
} , '<!-- 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") + \" />";'
66
66
) ;
67
67
} ) ;
68
68
it ( "should accept complex options via a webpack config property" , function ( ) {
0 commit comments