migrate document list to new api

This commit is contained in:
Eugenio Romano
2016-06-29 15:56:32 +01:00
parent aa848e271e
commit 7396a57e5c
9 changed files with 27 additions and 20 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');