chore: fix tests
This commit is contained in:
parent
64160e89cc
commit
4d5242128e
@ -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) {
|
||||
|
@ -92,7 +92,7 @@ export default {
|
||||
|
||||
_useCssVars(_ctx => ({
|
||||
\\"xxxxxxxx-color\\": (color),
|
||||
\\"xxxxxxxx-size\\": (_unref(size)),
|
||||
\\"xxxxxxxx-size\\": (size.value),
|
||||
\\"xxxxxxxx-foo\\": (__props.foo)
|
||||
}))
|
||||
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user