Skip to content

Commit

Permalink
test: better IM after hash
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Dec 5, 2024
1 parent 49eb850 commit 731c9ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/router/__tests__/location.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,18 +134,18 @@ describe('parseURL', () => {
})
})

it('avoids ? after the hash', () => {
it('correctly parses a ? 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',
expect(parseURL('/foo/?a=two#?a=one')).toEqual({
fullPath: '/foo/?a=two#?a=one',
path: '/foo/',
hash: '#?a=one',
query: {},
query: { a: 'two' },
})
})

Expand Down

0 comments on commit 731c9ee

Please sign in to comment.