Skip to content

Commit 876eb28

Browse files
committed
chore: fix test
1 parent 114eada commit 876eb28

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/macros/tests/__snapshots__/fixtures.spec.ts.snap

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ exports[`defineComponent autoReturnFunction fixtures > ./fixtures/define-compone
44
"
55
import { useAttrs as __MACROS_useAttrs } from "vue";
66
import { useModel as __MACROS_useModel } from "vue-jsx-vapor/macros/use-model";
7-
import { withAsyncContext as __MACROS_withAsyncContext } from "vue";import { defineComponent, nextTick } from 'vue'
7+
import { withAsyncContext as __MACROS_withAsyncContext } from "vue";import { defineComponent, nextTick, unref } from 'vue'
8+
9+
const $ = unref
810
911
const Comp = defineComponent(
1012
(__MACROS_props) => {const attrs = __MACROS_useAttrs();
@@ -102,7 +104,9 @@ exports[`fixtures > ./fixtures/define-component.tsx 1`] = `
102104
"
103105
import { useAttrs as __MACROS_useAttrs } from "vue";
104106
import { useModel as __MACROS_useModel } from "vue-jsx-vapor/macros/use-model";
105-
import { withAsyncContext as __MACROS_withAsyncContext } from "vue";import { defineComponent, nextTick } from 'vue'
107+
import { withAsyncContext as __MACROS_withAsyncContext } from "vue";import { defineComponent, nextTick, unref } from 'vue'
108+
109+
const $ = unref
106110
107111
const Comp = defineComponent(
108112
(__MACROS_props) => {const attrs = __MACROS_useAttrs();
@@ -224,7 +228,9 @@ export const Comp2 = ({ foo, ...__MACROS_props }: any) => {
224228
exports[`fixtures > ./fixtures/define-model.tsx 1`] = `
225229
"
226230
import { useModel as __MACROS_useModel } from "vue-jsx-vapor/macros/use-model";
227-
import { defineComponent } from 'vue'
231+
import { defineComponent, unref } from 'vue'
232+
233+
const $ = unref
228234
229235
export const Comp = defineComponent((__MACROS_props) => {
230236
const foo = __MACROS_useModel<string, 'm1' | 'm2'>(__MACROS_props, 'foo', { default: __MACROS_props.bar })

0 commit comments

Comments
 (0)