Skip to content

Commit 95da837

Browse files
committed
fix it for real
1 parent ee69e25 commit 95da837

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ describe('vue-loader', function () {
9494
entry: './test/fixtures/local-css.js'
9595
}, function (window) {
9696
var module = window.testModule
97+
var cls = '.v-' + hash(require.resolve('./fixtures/local-css.vue'))
9798
expect(module.template).to.contain(
98-
'<div class="v-5f0cf35a"><h1>hi</h1></div>\n' +
99-
'<p class="abc def v-5f0cf35a">hi</p>'
99+
'<div class="' + cls.slice(1) + '"><h1>hi</h1></div>\n' +
100+
'<p class="abc def ' + cls.slice(1) + '">hi</p>'
100101
)
101102
var style = window.document.querySelector('style').textContent
102-
var cls = '.v-' + hash(require.resolve('./fixtures/local-css.vue'))
103103
expect(style).to.contain('div' + cls + '.test {\n color: blue;\n}')
104104
expect(style).to.contain(cls + ' {\n color: red;\n}')
105105
expect(style).to.contain(cls + ' h1 {\n color: green;\n}')

0 commit comments

Comments
 (0)