Skip to content

Commit 0aabf82

Browse files
committed
fix css tests
1 parent 7381356 commit 0aabf82

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ describe('vue-loader', function () {
126126
entry: './test/fixtures/style-import.vue'
127127
}, function (window) {
128128
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}')
130130
// import with scoped
131131
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}')
133133
done()
134134
})
135135
})
@@ -188,7 +188,7 @@ describe('vue-loader', function () {
188188
}, function (window) {
189189
var style = window.document.querySelector('style').textContent
190190
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}')
192192
done()
193193
})
194194
})
@@ -207,7 +207,7 @@ describe('vue-loader', function () {
207207
]
208208
}), function () {
209209
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}')
211211
done()
212212
})
213213
})
@@ -245,8 +245,8 @@ describe('vue-loader', function () {
245245
var module = window.vueModule
246246
assertRenderFn(module, '<img src="logo.c9e00e.png">\n<img src="logo.c9e00e.png">')
247247
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}')
250250
done()
251251
})
252252
})

0 commit comments

Comments
 (0)