File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,12 +94,12 @@ describe('vue-loader', function () {
94
94
entry : './test/fixtures/local-css.js'
95
95
} , function ( window ) {
96
96
var module = window . testModule
97
+ var cls = '.v-' + hash ( require . resolve ( './fixtures/local-css.vue' ) )
97
98
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>'
100
101
)
101
102
var style = window . document . querySelector ( 'style' ) . textContent
102
- var cls = '.v-' + hash ( require . resolve ( './fixtures/local-css.vue' ) )
103
103
expect ( style ) . to . contain ( 'div' + cls + '.test {\n color: blue;\n}' )
104
104
expect ( style ) . to . contain ( cls + ' {\n color: red;\n}' )
105
105
expect ( style ) . to . contain ( cls + ' h1 {\n color: green;\n}' )
You can’t perform that action at this time.
0 commit comments