Skip to content

Commit

Permalink
test: adapt test du to vuejs/test-utils#945
Browse files Browse the repository at this point in the history
  • Loading branch information
Rena Brown committed Oct 18, 2021
1 parent b450a52 commit 5f2c1ae
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions __tests__/components.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ describe('components', () => {
const wrapper = mount(
{
template: `<router-link to="/">Hello</router-link>`,
}
// { global: { stubs: { RouterLink: true } } }
},
{ global: { stubs: { RouterLink: true } } }
)

expect(wrapper.html()).toMatchInlineSnapshot(
`"<router-link-stub to=\\"/\\"></router-link-stub>"`
)
expect(wrapper.html()).toMatch(/router-link-stub/)
})

it('can use real router-link', async () => {
Expand Down

0 comments on commit 5f2c1ae

Please sign in to comment.