@@ -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 ( ) {
@@ -82,8 +82,8 @@ describe("loader", function() {
82
82
it ( 'should minimize vue template' , function ( ) {
83
83
loader . call ( {
84
84
minimize : true
85
- } , '<div :id="test" @click="ok">\n hihihi {{what}} \n</div>' ) . should . be . eql (
86
- 'module.exports = "<div :id=test @click=ok> hihihi {{what}} </div>";'
85
+ } , '<div :id="test" @click="ok">\n hihihi {{what}} \n</div><button :disabled="ok"></button> ' ) . should . be . eql (
86
+ 'module.exports = "<div :id=test @click=ok> hihihi {{what}} </div><button :disabled=ok></button> ";'
87
87
) ;
88
88
} )
89
89
it ( "should not translate root-relative urls (without root query)" , function ( ) {
0 commit comments