]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
chore: remove old todos
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 5 Feb 2020 13:55:09 +0000 (14:55 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 5 Feb 2020 13:55:09 +0000 (14:55 +0100)
__tests__/RouterLink.spec.ts
__tests__/router.spec.ts

index 9090c34490b44e6ebfb1de8976844fc11602b384..67d08602c1bbeec2085993aec75edbb0ea61fbe5 100644 (file)
@@ -102,7 +102,7 @@ describe('RouterLink', () => {
     expect(el.innerHTML).toBe('<a class="" href="/home">a link</a>')
   })
 
-  // TODO: not sure why this breaks. We should probably move to @vue/test-runtime
+  // TODO: not sure why this breaks. We could take a look at @vue/test-runtime
   it.skip('can change the value', async () => {
     const to = ref(locations.basic.string)
     const { el, router } = factory(
index c1493e27a1d9e4929ee087b4ca7c76e72a500b89..b745aa94cd5ed580ade12dd2a6c7d508771e1162 100644 (file)
@@ -47,21 +47,6 @@ describe('Router', () => {
     expect(router.currentRoute.value).toEqual(START_LOCATION_NORMALIZED)
   })
 
-  // TODO: should do other checks not based on history implem
-  it.skip('takes browser location', async () => {
-    const history = createMemoryHistory()
-    history.replace('/search?q=dog#footer')
-    const { router } = await newRouter({ history })
-    await router.push(history.location.fullPath)
-    expect(router.currentRoute).toEqual({
-      fullPath: '/search?q=dog#footer',
-      hash: '#footer',
-      params: {},
-      path: '/search',
-      query: { q: 'dog' },
-    })
-  })
-
   it('calls history.push with router.push', async () => {
     const { router, history } = await newRouter()
     jest.spyOn(history, 'push')