From 875b36d602836432f8b95dc0b148f2d76aed32ff Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Fri, 15 Nov 2024 13:21:26 +0100 Subject: [PATCH] OZG-6999 urlencode faker.system.filePath faker.system.filePath needs to be urlencoded if used in an URI --- .../src/lib/list/list-item/list-item.component.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alfa-client/libs/design-system/src/lib/list/list-item/list-item.component.spec.ts b/alfa-client/libs/design-system/src/lib/list/list-item/list-item.component.spec.ts index 0aef13978f..04eeffba56 100644 --- a/alfa-client/libs/design-system/src/lib/list/list-item/list-item.component.spec.ts +++ b/alfa-client/libs/design-system/src/lib/list/list-item/list-item.component.spec.ts @@ -27,7 +27,7 @@ describe('ListItemComponent', () => { describe('input', () => { describe('routerLink', () => { it('should set href attribute', () => { - component.path = faker.system.filePath(); + component.path = encodeURI(faker.system.filePath()); const resultingLink: string = 'http://localhost' + component.path; const linkElement: HTMLLinkElement = getElementFromFixture(fixture, getDataTestClassOf('list-item-link')); -- GitLab