From: Eduardo San Martin Morote Date: Fri, 27 May 2022 22:55:13 +0000 (+0200) Subject: test: no trailing slash X-Git-Tag: v4.1.0~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf2eb916983471cb4bed455216b25a1188ee847d;p=thirdparty%2Fvuejs%2Frouter.git test: no trailing slash --- diff --git a/__tests__/location.spec.ts b/__tests__/location.spec.ts index 6e1ea82c..b848ebbb 100644 --- a/__tests__/location.spec.ts +++ b/__tests__/location.spec.ts @@ -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/',