chore: fix tests
This commit is contained in:
parent
64160e89cc
commit
4d5242128e
@ -225,7 +225,7 @@ export function generate(
|
|||||||
const signature =
|
const signature =
|
||||||
!__BROWSER__ && options.isTS
|
!__BROWSER__ && options.isTS
|
||||||
? args.map(arg => `${arg}: any`).join(',')
|
? args.map(arg => `${arg}: any`).join(',')
|
||||||
: args.join(',')
|
: args.join(', ')
|
||||||
// enter render function
|
// enter render function
|
||||||
if (!ssr) {
|
if (!ssr) {
|
||||||
if (isSetupInlined) {
|
if (isSetupInlined) {
|
||||||
|
@ -92,7 +92,7 @@ export default {
|
|||||||
|
|
||||||
_useCssVars(_ctx => ({
|
_useCssVars(_ctx => ({
|
||||||
\\"xxxxxxxx-color\\": (color),
|
\\"xxxxxxxx-color\\": (color),
|
||||||
\\"xxxxxxxx-size\\": (_unref(size)),
|
\\"xxxxxxxx-size\\": (size.value),
|
||||||
\\"xxxxxxxx-foo\\": (__props.foo)
|
\\"xxxxxxxx-foo\\": (__props.foo)
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ describe('CSS vars injection', () => {
|
|||||||
// 3. props bindings (analyzed)
|
// 3. props bindings (analyzed)
|
||||||
expect(content).toMatch(`_useCssVars(_ctx => ({
|
expect(content).toMatch(`_useCssVars(_ctx => ({
|
||||||
"${mockId}-color": (color),
|
"${mockId}-color": (color),
|
||||||
"${mockId}-size": (_unref(size)),
|
"${mockId}-size": (size.value),
|
||||||
"${mockId}-foo": (__props.foo)
|
"${mockId}-foo": (__props.foo)
|
||||||
})`)
|
})`)
|
||||||
expect(content).toMatch(
|
expect(content).toMatch(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user