From 4d5242128e5d39a596253a0e99c98925bc8db530 Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 18 Nov 2020 22:34:55 -0500 Subject: [PATCH] chore: fix tests --- packages/compiler-core/src/codegen.ts | 2 +- .../compiler-sfc/__tests__/__snapshots__/cssVars.spec.ts.snap | 2 +- packages/compiler-sfc/__tests__/cssVars.spec.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/compiler-core/src/codegen.ts b/packages/compiler-core/src/codegen.ts index 3ca4b7de..a92f2597 100644 --- a/packages/compiler-core/src/codegen.ts +++ b/packages/compiler-core/src/codegen.ts @@ -225,7 +225,7 @@ export function generate( const signature = !__BROWSER__ && options.isTS ? args.map(arg => `${arg}: any`).join(',') - : args.join(',') + : args.join(', ') // enter render function if (!ssr) { if (isSetupInlined) { diff --git a/packages/compiler-sfc/__tests__/__snapshots__/cssVars.spec.ts.snap b/packages/compiler-sfc/__tests__/__snapshots__/cssVars.spec.ts.snap index bf03f882..cc7c16bc 100644 --- a/packages/compiler-sfc/__tests__/__snapshots__/cssVars.spec.ts.snap +++ b/packages/compiler-sfc/__tests__/__snapshots__/cssVars.spec.ts.snap @@ -92,7 +92,7 @@ export default { _useCssVars(_ctx => ({ \\"xxxxxxxx-color\\": (color), - \\"xxxxxxxx-size\\": (_unref(size)), + \\"xxxxxxxx-size\\": (size.value), \\"xxxxxxxx-foo\\": (__props.foo) })) diff --git a/packages/compiler-sfc/__tests__/cssVars.spec.ts b/packages/compiler-sfc/__tests__/cssVars.spec.ts index cdd67698..53e64080 100644 --- a/packages/compiler-sfc/__tests__/cssVars.spec.ts +++ b/packages/compiler-sfc/__tests__/cssVars.spec.ts @@ -43,7 +43,7 @@ describe('CSS vars injection', () => { // 3. props bindings (analyzed) expect(content).toMatch(`_useCssVars(_ctx => ({ "${mockId}-color": (color), - "${mockId}-size": (_unref(size)), + "${mockId}-size": (size.value), "${mockId}-foo": (__props.foo) })`) expect(content).toMatch(