Skip to content

Commit 731c9ee

Browse files
committed
test: better IM after hash
1 parent 49eb850 commit 731c9ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/router/__tests__/location.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,18 @@ describe('parseURL', () => {
134134
})
135135
})
136136

137-
it('avoids ? after the hash', () => {
137+
it('correctly parses a ? after the hash', () => {
138138
expect(parseURL('/foo#?a=one')).toEqual({
139139
fullPath: '/foo#?a=one',
140140
path: '/foo',
141141
hash: '#?a=one',
142142
query: {},
143143
})
144-
expect(parseURL('/foo/#?a=one')).toEqual({
145-
fullPath: '/foo/#?a=one',
144+
expect(parseURL('/foo/?a=two#?a=one')).toEqual({
145+
fullPath: '/foo/?a=two#?a=one',
146146
path: '/foo/',
147147
hash: '#?a=one',
148-
query: {},
148+
query: { a: 'two' },
149149
})
150150
})
151151

0 commit comments

Comments
 (0)