File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,23 +38,23 @@ 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
it ( "should preserve comments" , function ( ) {
45
45
loader . call ( {
46
46
minimize : true ,
47
47
query : "?-removeComments"
48
- } , '<!-- comment --><h3 customAttr="">#{number} {customer}</h3>\n <p> {title} </p>\n\t <!-- comment --> <img src="image.png" />' ) . should . be . eql (
49
- 'module.exports = "<!-- comment --><h3 customattr=\\"\\">#{number} {customer}</h3><p>{title}</p><!-- comment --><img src=\\"\" + require("./image.png") + "\\\">";'
48
+ } , '<!-- comment --><h3 customAttr="">#{number} {customer}</h3><p>{title}</p><!-- comment --><img src="image.png" />' ) . should . be . eql (
49
+ 'module.exports = "<!-- comment --><h3 customattr=\\"\\">#{number} {customer}</h3><p>{title}</p><!-- comment --><img src=\\"\" + require("./image.png") + "\\\"/ >";'
50
50
) ;
51
51
} ) ;
52
52
it ( "should treat attributes as case sensitive" , function ( ) {
53
53
loader . call ( {
54
54
minimize : true ,
55
55
query : "?caseSensitive"
56
- } , '<!-- comment --><h3 customAttr="">#{number} {customer}</h3>\n <p> {title} </p>\n\t <!-- comment --> <img src="image.png" />' ) . should . be . eql (
57
- 'module.exports = "<h3 customAttr=\\"\\">#{number} {customer}</h3><p>{title}</p><img src=\\"\" + require("./image.png") + "\\\">";'
56
+ } , '<!-- comment --><h3 customAttr="">#{number} {customer}</h3><p>{title}</p><!-- comment --><img src="image.png" />' ) . should . be . eql (
57
+ 'module.exports = "<h3 customAttr=\\"\\">#{number} {customer}</h3><p>{title}</p><img src=\\"\" + require("./image.png") + "\\\"/ >";'
58
58
) ;
59
59
} ) ;
60
60
it ( "should not translate root-relative urls (without root query)" , function ( ) {
You can’t perform that action at this time.
0 commit comments