@@ -126,10 +126,10 @@ describe('vue-loader', function () {
126
126
entry : './test/fixtures/style-import.vue'
127
127
} , function ( window ) {
128
128
var styles = window . document . querySelectorAll ( 'style' )
129
- expect ( styles [ 0 ] . textContent ) . to . contain ( 'h1 { color: red; }' )
129
+ expect ( styles [ 0 ] . textContent ) . to . contain ( 'h1 { color: red;\n }' )
130
130
// import with scoped
131
131
var id = 'data-v-' + genId ( require . resolve ( './fixtures/style-import.vue' ) )
132
- expect ( styles [ 1 ] . textContent ) . to . contain ( 'h1[' + id + '] { color: green; }' )
132
+ expect ( styles [ 1 ] . textContent ) . to . contain ( 'h1[' + id + '] { color: green;\n }' )
133
133
done ( )
134
134
} )
135
135
} )
@@ -188,7 +188,7 @@ describe('vue-loader', function () {
188
188
} , function ( window ) {
189
189
var style = window . document . querySelector ( 'style' ) . textContent
190
190
var id = 'data-v-' + genId ( require . resolve ( './fixtures/media-query.vue' ) )
191
- expect ( style ) . to . contain ( '@media print {\n .foo[' + id + '] {\n color: #000;\n }\n}' )
191
+ expect ( style ) . to . contain ( '@media print {\n.foo[' + id + '] {\n color: #000;\n}\n}' )
192
192
done ( )
193
193
} )
194
194
} )
@@ -207,7 +207,7 @@ describe('vue-loader', function () {
207
207
]
208
208
} ) , function ( ) {
209
209
var css = mfs . readFileSync ( '/test.output.css' ) . toString ( )
210
- expect ( css ) . to . contain ( 'h1 {\n color: #f00;\n}\n\n\n\n\n\n\ nh2 {\n color: green;\n}' )
210
+ expect ( css ) . to . contain ( 'h1 {\n color: #f00;\n}\n\nh2 {\n color: green;\n}' )
211
211
done ( )
212
212
} )
213
213
} )
@@ -245,8 +245,8 @@ describe('vue-loader', function () {
245
245
var module = window . vueModule
246
246
assertRenderFn ( module , '<img src="logo.c9e00e.png">\n<img src="logo.c9e00e.png">' )
247
247
var style = window . document . querySelector ( 'style' ) . textContent
248
- expect ( style ) . to . contain ( 'html { background-image: url(logo.c9e00e.png); }' )
249
- expect ( style ) . to . contain ( 'body { background-image: url(logo.c9e00e.png); }' )
248
+ expect ( style ) . to . contain ( 'html { background-image: url(logo.c9e00e.png);\n }' )
249
+ expect ( style ) . to . contain ( 'body { background-image: url(logo.c9e00e.png);\n }' )
250
250
done ( )
251
251
} )
252
252
} )
0 commit comments