]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test: fix tests
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 25 Mar 2020 20:31:42 +0000 (21:31 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 25 Mar 2020 20:31:42 +0000 (21:31 +0100)
__tests__/history/html5.spec.ts
__tests__/router.spec.ts

index dc44100b032050702e3a288dda496586946e1b04..606deee16bf8b4784d28a785e00c7f2a9be156bb 100644 (file)
@@ -15,9 +15,6 @@ describe('History HTMl5', () => {
     const history = createWebHistory()
     expect(history.location).toEqual({
       fullPath: '/',
-      path: '/',
-      query: {},
-      hash: '',
     })
   })
 })
index ea69c117c2fdce1e9dbce4f3b68842aa4b15af99..73db654689c306a042ab9579a0dbf6da615a7564 100644 (file)
@@ -87,7 +87,8 @@ describe('Router', () => {
         path: '/foo',
         query: {},
         hash: '',
-      })
+      }),
+      undefined
     )
   })
 
@@ -127,7 +128,8 @@ describe('Router', () => {
         path: '/foo',
         query: {},
         hash: '',
-      })
+      }),
+      undefined
     )
   })
 
@@ -142,7 +144,8 @@ describe('Router', () => {
         path: '/foo',
         query: {},
         hash: '',
-      })
+      }),
+      undefined
     )
   })