Skip to content

Commit eae3f0f

Browse files
committed
test: update test case
1 parent 096f998 commit eae3f0f

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

packages/compiler-sfc/__tests__/__snapshots__/cssVars.spec.ts.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ export default {
7474
expose();
7575
7676
_useCssVars(_ctx => ({
77-
\\"xxxxxxxx-a\\": (_unref(a)),
78-
\\"xxxxxxxx-b\\": (_unref(b)),
7977
\\"xxxxxxxx-foo\\": (_unref(foo)),
8078
\\"xxxxxxxx-_a___b____2____px__\\": ((_unref(a) + _unref(b)) / 2 + 'px' ),
8179
\\"xxxxxxxx-__a___b______2___a_\\": (((_unref(a) + _unref(b))) / (2 * _unref(a)))

packages/compiler-sfc/__tests__/cssVars.spec.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,6 @@ describe('CSS vars injection', () => {
207207
let foo = 300
208208
</script>\n` +
209209
`<style>
210-
span{
211-
width: calc(v-bind(a) - 3px);
212-
height: calc(v-bind('b') - 3px);
213-
}
214210
p{
215211
width: calc(v-bind(foo) - 3px);
216212
height: calc(v-bind('foo') - 3px);
@@ -227,8 +223,6 @@ describe('CSS vars injection', () => {
227223
</style>`
228224
)
229225
expect(content).toMatch(`_useCssVars(_ctx => ({
230-
"${mockId}-a": (_unref(a)),
231-
"${mockId}-b": (_unref(b)),
232226
"${mockId}-foo": (_unref(foo)),
233227
"${mockId}-_a___b____2____px__": ((_unref(a) + _unref(b)) / 2 + 'px' ),
234228
"${mockId}-__a___b______2___a_": (((_unref(a) + _unref(b))) / (2 * _unref(a)))

0 commit comments

Comments
 (0)