Skip to content
Snippets Groups Projects
Commit 33f40722 authored by Martin's avatar Martin
Browse files

remove encodingUri

parent f897d5dd
Branches
Tags
No related merge requests found
...@@ -32,6 +32,8 @@ describe('ListItemComponent', () => { ...@@ -32,6 +32,8 @@ describe('ListItemComponent', () => {
let component: ListItemComponent; let component: ListItemComponent;
let fixture: ComponentFixture<ListItemComponent>; let fixture: ComponentFixture<ListItemComponent>;
const link: string = getDataTestClassOf('list-item-link');
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
imports: [ListItemComponent], imports: [ListItemComponent],
...@@ -50,13 +52,12 @@ describe('ListItemComponent', () => { ...@@ -50,13 +52,12 @@ describe('ListItemComponent', () => {
describe('input', () => { describe('input', () => {
describe('routerLink', () => { describe('routerLink', () => {
it('should set href attribute', () => { it('should set href attribute', () => {
component.path = encodeURI(faker.system.filePath()); component.path = faker.system.filePath();
const resultingLink: string = 'http://localhost' + component.path;
const linkElement: HTMLLinkElement = getElementFromFixture(fixture, getDataTestClassOf('list-item-link'));
fixture.detectChanges(); fixture.detectChanges();
expect(linkElement.href).toBe(resultingLink); const linkElement: HTMLLinkElement = getElementFromFixture(fixture, link);
expect(linkElement.href).toBe(`http://localhost${component.path}`);
}); });
}); });
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment