Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Nov 19, 2020
1 parent 64160e8 commit 4d52421
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/compiler-core/src/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default {
_useCssVars(_ctx => ({
\\"xxxxxxxx-color\\": (color),
\\"xxxxxxxx-size\\": (_unref(size)),
\\"xxxxxxxx-size\\": (size.value),
\\"xxxxxxxx-foo\\": (__props.foo)
}))
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler-sfc/__tests__/cssVars.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4d52421

Please sign in to comment.