We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49eb850 commit 731c9eeCopy full SHA for 731c9ee
packages/router/__tests__/location.spec.ts
@@ -134,18 +134,18 @@ describe('parseURL', () => {
134
})
135
136
137
- it('avoids ? after the hash', () => {
+ it('correctly parses a ? after the hash', () => {
138
expect(parseURL('/foo#?a=one')).toEqual({
139
fullPath: '/foo#?a=one',
140
path: '/foo',
141
hash: '#?a=one',
142
query: {},
143
144
- expect(parseURL('/foo/#?a=one')).toEqual({
145
- fullPath: '/foo/#?a=one',
+ expect(parseURL('/foo/?a=two#?a=one')).toEqual({
+ fullPath: '/foo/?a=two#?a=one',
146
path: '/foo/',
147
148
- query: {},
+ query: { a: 'two' },
149
150
151
0 commit comments