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() {
3838 loader . call ( {
3939 minimize : true
4040 } , '<!-- 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") + "\\\"/ >";'
4242 ) ;
4343 } ) ;
4444 it ( "should preserve comments" , function ( ) {
4545 loader . call ( {
4646 minimize : true ,
4747 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") + "\\\"/ >";'
5050 ) ;
5151 } ) ;
5252 it ( "should treat attributes as case sensitive" , function ( ) {
5353 loader . call ( {
5454 minimize : true ,
5555 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") + "\\\"/ >";'
5858 ) ;
5959 } ) ;
6060 it ( "should not translate root-relative urls (without root query)" , function ( ) {
You can’t perform that action at this time.
0 commit comments