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', () => {
let component: ListItemComponent;
let fixture: ComponentFixture<ListItemComponent>;
const link: string = getDataTestClassOf('list-item-link');
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [ListItemComponent],
......@@ -50,13 +52,12 @@ describe('ListItemComponent', () => {
describe('input', () => {
describe('routerLink', () => {
it('should set href attribute', () => {
component.path = encodeURI(faker.system.filePath());
const resultingLink: string = 'http://localhost' + component.path;
const linkElement: HTMLLinkElement = getElementFromFixture(fixture, getDataTestClassOf('list-item-link'));
component.path = faker.system.filePath();
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