remove console log error from version list and content node selector test stubbing necessary method

This commit is contained in:
Eugenio Romano
2018-05-30 11:22:03 +01:00
parent 9eae0fcc8f
commit 08165d6fd4
2 changed files with 10 additions and 4 deletions

View File

@@ -76,6 +76,7 @@ describe('VersionListComponent', () => {
});
it('should delete the version if user confirms', () => {
spyOn(alfrescoApiService.versionsApi, 'listVersionHistory').and.returnValue(Promise.resolve({ list: { entries: [] } }));
spyOn(dialog, 'open').and.returnValue({
afterClosed() {
return Observable.of(true);