Skip to content

Commit

Permalink
test: no trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed May 31, 2022
1 parent 29f053c commit 5ca0145
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions __tests__/location.spec.ts
Expand Up @@ -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/',
Expand Down

0 comments on commit 5ca0145

Please sign in to comment.