Update index.test.ts

This commit is contained in:
Nate Kelley 2025-09-25 15:39:35 -06:00
parent 468511d8cb
commit 2705b180ac
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 4 additions and 2 deletions

View File

@ -38,11 +38,13 @@ describe('createFullURL', () => {
pathname: '/reports/123', pathname: '/reports/123',
search: { tab: 'overview' }, search: { tab: 'overview' },
searchStr: '?tab=overview', searchStr: '?tab=overview',
state: {}, state: { __TSR_index: 0 },
hash: '', hash: '',
key: 'test-key', key: 'test-key',
maskedLocation: undefined, maskedLocation: undefined,
} as ParsedLocation; publicHref: '/reports/123?tab=overview',
url: '/reports/123?tab=overview',
} as unknown as ParsedLocation;
const result = createFullURL(mockLocation); const result = createFullURL(mockLocation);