Skip to content

Commit

Permalink
chore: update test snap
Browse files Browse the repository at this point in the history
  • Loading branch information
jaw52 committed Jun 19, 2023
1 parent f65a253 commit ee95ee0
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions test/__snapshots__/transform.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
exports[`transform > fixtures > playground/src/App.vue 1`] = `
"<script lang=\\"ts\\">
import { defineAsyncComponent } from '@vue/composition-api';
import ButtonTest from './ButtonTest.vue';
import HelloWorld from './HelloWorld.vue';
const AsyncComponent = defineAsyncComponent(() => import('./Async.vue'));
const __sfc_main = {};
Expand All @@ -16,13 +17,16 @@ __sfc_main.setup = (__props, __ctx) => {
};
};
__sfc_main.components = Object.assign({
ButtonTest,
HelloWorld,
AsyncComponent
}, __sfc_main.components);
export default __sfc_main;
</script>
<template>
<div>
<ButtonTest/>
<HelloWorld name=\\"Vue 2\\" @update=\\"onUpdate\\" />
<AsyncComponent />
Expand All @@ -45,9 +49,41 @@ exports[`transform > fixtures > playground/src/Bar.vue 1`] = `
"
`;

exports[`transform > fixtures > playground/src/ButtonTest.vue 1`] = `
"<script lang=\\"ts\\">
import Button from './Foo.vue';
import button from './Foo.vue';
const __sfc_main = {};
__sfc_main.setup = (__props, __ctx) => {
return {
Button,
button
};
};
__sfc_main.components = Object.assign({
Button
}, __sfc_main.components);
export default __sfc_main;
</script>
<template>
<div>
<button>{{ Button }}</button>
<Button>{{ button }}</Button>
</div>
</template>
"
`;
exports[`transform > fixtures > playground/src/Foo.vue 1`] = `
"<template>
<div>Foo</div>
"<script lang=\\"ts\\">
const __sfc_main = {};
export default __sfc_main;
</script>
<template>
<div>
Button Component: <slot></slot>
</div>
</template>
"
`;
Expand Down

0 comments on commit ee95ee0

Please sign in to comment.