Skip to content

Commit

Permalink
Update sourceDecorator test
Browse files Browse the repository at this point in the history
  • Loading branch information
leettaylor committed Nov 27, 2020
1 parent fc6a4bf commit 7589650
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions addons/docs/src/frameworks/vue/sourceDecorator.test.ts
Expand Up @@ -32,7 +32,7 @@ describe('vnodeToString', () => {

it('attributes', () => {
const MyComponent: ComponentOptions<any, any, any> = {
props: ['propA', 'propB', 'propC', 'propD', 'propE', 'propF', 'propG', 'propH'],
props: ['propA', 'propB', 'propC', 'propD', 'propE', 'propF', 'propG'],
template: '<div/>',
};

Expand All @@ -48,24 +48,22 @@ describe('vnodeToString', () => {
propC: null,
propD: {
foo: 'bar',
bar: 'foo',
},
propE: 'propE',
propF: true,
propG() {
propE: true,
propF() {
const foo = 'bar';

return foo;
},
propH: undefined,
propG: undefined,
},
};
},
template: `<my-component v-bind="props"/>`,
})
)
).toMatchInlineSnapshot(
`<my-component propF propE="propE" :propD='{"foo":"bar","bar":"foo"}' :propC="null" :propB="1" propA="propA"/>`
`<my-component propE :propD='{"foo":"bar"}' :propC="null" :propB="1" propA="propA"/>`
);
});

Expand Down

0 comments on commit 7589650

Please sign in to comment.