fix test login

This commit is contained in:
Eugenio Romano
2016-06-29 12:22:17 +01:00
parent 35d245bbaa
commit aa848e271e
3 changed files with 38 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ import { EventMock } from './assets/event.mock';
let element = fixture.nativeElement;
let component = fixture.componentInstance;
component.urlFile = 'http://localhost:9876/fake-url-file.pdf';
component.ngOnChanges().then(() => {
fixture.detectChanges();
expect(element.querySelector('#viewer-name-file').innerHTML).toEqual('fake-url-file.pdf');
@@ -107,8 +107,6 @@ import { EventMock } from './assets/event.mock';
let component = fixture.componentInstance;
component.urlFile = 'fake-url-file';
fixture.detectChanges();
EventMock.keyDown(27);
fixture.detectChanges();