]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test: delete duplicate test case (#449)
authorruige24601 <57212574+ruige24601@users.noreply.github.com>
Tue, 1 Sep 2020 07:35:28 +0000 (15:35 +0800)
committerGitHub <noreply@github.com>
Tue, 1 Sep 2020 07:35:28 +0000 (09:35 +0200)
__tests__/RouterView.spec.ts

index 812d5c245fadb12c88a00625e9d26d9bdfdd8ad6..1803d7e9263e9649f38c22a9c846f9eb7a9461ba 100644 (file)
@@ -288,18 +288,6 @@ describe('RouterView', () => {
     expect(wrapper.html()).toBe(`<div>User: 4</div>`)
   })
 
-  it('passes params as props with props: true', async () => {
-    const { wrapper, route } = await factory(routes.withParams)
-
-    expect(wrapper.html()).toBe(`<div>User: 1</div>`)
-
-    await route.set({
-      ...routes.withParams,
-      params: { id: '4' },
-    })
-    expect(wrapper.html()).toBe(`<div>User: 4</div>`)
-  })
-
   it('can pass an object as props', async () => {
     const { wrapper } = await factory(routes.withIdAndOther)
     expect(wrapper.html()).toBe(`<div>id:foo;other:fixed</div>`)