[ADF-587] upgrade components to angular 4 (#1866)

[ADF-587]  upgrade components to angular 4
This commit is contained in:
Denys Vuika
2017-05-09 09:45:11 +01:00
committed by Eugenio Romano
parent 5ba1202292
commit e29741d18d
48 changed files with 297 additions and 270 deletions

View File

@@ -460,7 +460,7 @@ describe('DocumentList', () => {
});
documentList.currentFolderId = 'wrong-id';
documentList.ngOnChanges({currentFolderId: new SimpleChange(null, documentList.currentFolderId)});
documentList.ngOnChanges({currentFolderId: new SimpleChange(null, documentList.currentFolderId, true)});
});
it('should require dataTable to check empty template', () => {
@@ -526,7 +526,7 @@ describe('DocumentList', () => {
it('should load folder by ID on init', () => {
documentList.currentFolderId = '1d26e465-dea3-42f3-b415-faa8364b9692';
spyOn(documentList, 'loadFolderNodesByFolderNodeId').and.returnValue(Promise.resolve());
documentList.ngOnChanges({folderNode: new SimpleChange(null, documentList.currentFolderId)});
documentList.ngOnChanges({folderNode: new SimpleChange(null, documentList.currentFolderId, true)});
expect(documentList.loadFolderNodesByFolderNodeId).toHaveBeenCalled();
});
});