chore: fix tests

This commit is contained in:
Evan You 2020-11-18 22:34:55 -05:00
parent 64160e89cc
commit 4d5242128e
3 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -92,7 +92,7 @@ export default {
_useCssVars(_ctx => ({
\\"xxxxxxxx-color\\": (color),
\\"xxxxxxxx-size\\": (_unref(size)),
\\"xxxxxxxx-size\\": (size.value),
\\"xxxxxxxx-foo\\": (__props.foo)
}))

View File

@ -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(