Skip to content

Commit 4d52421

Browse files
committed
chore: fix tests
1 parent 64160e8 commit 4d52421

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/compiler-core/src/codegen.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export function generate(
225225
const signature =
226226
!__BROWSER__ && options.isTS
227227
? args.map(arg => `${arg}: any`).join(',')
228-
: args.join(',')
228+
: args.join(', ')
229229
// enter render function
230230
if (!ssr) {
231231
if (isSetupInlined) {

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default {
9292
9393
_useCssVars(_ctx => ({
9494
\\"xxxxxxxx-color\\": (color),
95-
\\"xxxxxxxx-size\\": (_unref(size)),
95+
\\"xxxxxxxx-size\\": (size.value),
9696
\\"xxxxxxxx-foo\\": (__props.foo)
9797
}))
9898

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('CSS vars injection', () => {
4343
// 3. props bindings (analyzed)
4444
expect(content).toMatch(`_useCssVars(_ctx => ({
4545
"${mockId}-color": (color),
46-
"${mockId}-size": (_unref(size)),
46+
"${mockId}-size": (size.value),
4747
"${mockId}-foo": (__props.foo)
4848
})`)
4949
expect(content).toMatch(

0 commit comments

Comments
 (0)