Skip to content

Commit f1f6236

Browse files
committed
chore: fix tests
1 parent 8a71364 commit f1f6236

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`defineComponent autoReturnFunction fixtures > ./fixtures/define-component.tsx 1`] = `
44
"
55
import { useAttrs as __MACROS_useAttrs } from "vue";
6-
import { useModel as __MACROS_useModel } from "vue-jsx-vapor/macros/use-model";
6+
import { useModel as __MACROS_useModel } from "/vue-jsx-vapor/macros/use-model";
77
import { useFullProps as __MACROS_useFullProps } from "vue-jsx-vapor";
88
import { withAsyncContext as __MACROS_withAsyncContext } from "vue";import { defineComponent, defineVaporComponent, nextTick, unref } from 'vue'
99
@@ -104,7 +104,7 @@ defineVaporComponent((__MACROS_props) => {
104104
exports[`fixtures > ./fixtures/define-component.tsx 1`] = `
105105
"
106106
import { useAttrs as __MACROS_useAttrs } from "vue";
107-
import { useModel as __MACROS_useModel } from "vue-jsx-vapor/macros/use-model";
107+
import { useModel as __MACROS_useModel } from "/vue-jsx-vapor/macros/use-model";
108108
import { useFullProps as __MACROS_useFullProps } from "vue-jsx-vapor";
109109
import { withAsyncContext as __MACROS_withAsyncContext } from "vue";import { defineComponent, defineVaporComponent, nextTick, unref } from 'vue'
110110
@@ -229,7 +229,7 @@ export const Comp2 = ({ foo, ...__MACROS_props }: any) => {
229229

230230
exports[`fixtures > ./fixtures/define-model.tsx 1`] = `
231231
"
232-
import { useModel as __MACROS_useModel } from "vue-jsx-vapor/macros/use-model";
232+
import { useModel as __MACROS_useModel } from "/vue-jsx-vapor/macros/use-model";
233233
import { defineVaporComponent, unref } from 'vue'
234234
235235
const $ = unref
@@ -274,8 +274,8 @@ export default function () {
274274
`;
275275
276276
exports[`fixtures > ./fixtures/define-style.tsx 1`] = `
277-
"import "vue-jsx-vapor/macros/define-style/0?scopeId=4e9d5cd0&scoped=true&lang.css";import style1 from "vue-jsx-vapor/macros/define-style/1?scopeId=13f8dd3a&scoped=true&lang.module.scss";
278-
import { useSlots as __MACROS_useSlots } from "vue";import "vue-jsx-vapor/macros/define-style/2?scopeId=63a7910c&scoped=false&lang.scss";import { defineComponent, ref } from 'vue'
277+
"import "/vue-jsx-vapor/macros/define-style/0?scopeId=4e9d5cd0&scoped=true&lang.css";import style1 from "/vue-jsx-vapor/macros/define-style/1?scopeId=13f8dd3a&scoped=true&lang.module.scss";
278+
import { useSlots as __MACROS_useSlots } from "vue";import "/vue-jsx-vapor/macros/define-style/2?scopeId=63a7910c&scoped=false&lang.scss";import { defineComponent, ref } from 'vue'
279279
280280
export const Comp = () => {
281281
const color = ref('red')

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ exports[`transform > reconstruct 1`] = `
1111

1212
exports[`transform > reconstruct AssignmentPattern 1`] = `
1313
"
14-
import { createPropsDefaultProxy as __MACROS_createPropsDefaultProxy } from "vue-jsx-vapor/macros/with-defaults";function App(__MACROS_props){
14+
import { createPropsDefaultProxy as __MACROS_createPropsDefaultProxy } from "/vue-jsx-vapor/macros/with-defaults";function App(__MACROS_props){
1515
__MACROS_props = __MACROS_createPropsDefaultProxy(__MACROS_props, {'.foo.foo': 1, '.bar[0]': 2});
1616
return <>{[__MACROS_props.foo.foo, __MACROS_props.bar[0]]}</>
1717
}"
@@ -26,7 +26,7 @@ exports[`transform > reconstruct arrowFunctionExpression 1`] = `
2626
exports[`transform > reconstruct default-prop 1`] = `
2727
"
2828
import { createPropsRestProxy as __MACROS_createPropsRestProxy } from "vue";
29-
import { createPropsDefaultProxy as __MACROS_createPropsDefaultProxy } from "vue-jsx-vapor/macros/with-defaults";function App(__MACROS_props, __MACROS_props1){
29+
import { createPropsDefaultProxy as __MACROS_createPropsDefaultProxy } from "/vue-jsx-vapor/macros/with-defaults";function App(__MACROS_props, __MACROS_props1){
3030
const rest = __MACROS_createPropsRestProxy(__MACROS_props, ['foo', 'baz']);
3131
__MACROS_props = __MACROS_createPropsDefaultProxy(__MACROS_props, {'.foo': 'bar'});
3232
__MACROS_props1 = __MACROS_createPropsDefaultProxy(__MACROS_props1, {'[0]': 'foo'});
@@ -37,7 +37,7 @@ __MACROS_props1 = __MACROS_createPropsDefaultProxy(__MACROS_props1, {'[0]': 'foo
3737
exports[`transform > reconstruct rest-prop 1`] = `
3838
"
3939
import { createPropsRestProxy as __MACROS_createPropsRestProxy } from "vue";
40-
import { createPropsDefaultProxy as __MACROS_createPropsDefaultProxy } from "vue-jsx-vapor/macros/with-defaults";function App(__MACROS_props){
40+
import { createPropsDefaultProxy as __MACROS_createPropsDefaultProxy } from "/vue-jsx-vapor/macros/with-defaults";function App(__MACROS_props){
4141
const rest = __MACROS_createPropsRestProxy(__MACROS_props, ['foo', 'bar']);
4242
__MACROS_props = __MACROS_createPropsDefaultProxy(__MACROS_props, {'.bar': 1});
4343
return <>{[__MACROS_props.foo, __MACROS_props.bar, rest]}</>

0 commit comments

Comments
 (0)