#68 center loader

This commit is contained in:
Eugenio Romano
2016-06-07 11:06:13 +01:00
parent 9bbf7cc382
commit b7b938b453
4 changed files with 20 additions and 17 deletions

View File

@@ -37,6 +37,18 @@ describe('PdfViewer', () => {
expect(element.querySelector('#viewer-pdf-container')).not.toBeNull();
});
}));
it('Loader should be present', injectAsync([TestComponentBuilder], (tcb: TestComponentBuilder) => {
return tcb
.createAsync(PdfViewerComponent)
.then((fixture) => {
let element = fixture.nativeElement;
fixture.detectChanges();
expect(element.querySelector('#viewer-loader')).not.toBeNull();
});
}));
});
describe('User interaction', () => {