]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test: no trailing slash
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 27 May 2022 22:55:13 +0000 (00:55 +0200)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Thu, 30 Jun 2022 07:59:00 +0000 (09:59 +0200)
__tests__/location.spec.ts

index 6e1ea82caceb9e33efb21240b41335598d77b123..b848ebbbedfe6e754f2fbce03e31f2ac9689616f 100644 (file)
@@ -134,6 +134,12 @@ describe('parseURL', () => {
   })
 
   it('parses ? after the hash', () => {
+    expect(parseURL('/foo#?a=one')).toEqual({
+      fullPath: '/foo#?a=one',
+      path: '/foo',
+      hash: '#?a=one',
+      query: {},
+    })
     expect(parseURL('/foo/#?a=one')).toEqual({
       fullPath: '/foo/#?a=one',
       path: '/foo/',