From bf2eb916983471cb4bed455216b25a1188ee847d Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Sat, 28 May 2022 00:55:13 +0200 Subject: [PATCH] test: no trailing slash --- __tests__/location.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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/', -- 2.47.3