Skip to content
Snippets Groups Projects
Commit 875b36d6 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6999 urlencode faker.system.filePath

faker.system.filePath needs to be urlencoded if used in an URI
parent 18d1314a
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ describe('ListItemComponent', () => { ...@@ -27,7 +27,7 @@ describe('ListItemComponent', () => {
describe('input', () => { describe('input', () => {
describe('routerLink', () => { describe('routerLink', () => {
it('should set href attribute', () => { it('should set href attribute', () => {
component.path = faker.system.filePath(); component.path = encodeURI(faker.system.filePath());
const resultingLink: string = 'http://localhost' + component.path; const resultingLink: string = 'http://localhost' + component.path;
const linkElement: HTMLLinkElement = getElementFromFixture(fixture, getDataTestClassOf('list-item-link')); const linkElement: HTMLLinkElement = getElementFromFixture(fixture, getDataTestClassOf('list-item-link'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment