fix eslint warnigs for core project (#7506)

This commit is contained in:
Denys Vuika
2022-02-17 14:35:33 +00:00
committed by GitHub
parent 5b7f255eec
commit bca5a783ab
246 changed files with 5127 additions and 5065 deletions

View File

@@ -156,9 +156,7 @@ describe('ViewerComponent', () => {
providers: [
{
provide: RenditionsService, useValue: {
getRendition: () => {
return throwError('thrown');
}
getRendition: () => throwError('thrown')
}
},
RenderingQueueServices,
@@ -560,15 +558,15 @@ describe('ViewerComponent', () => {
expect(component.fileTitle).toBe('file1');
alfrescoApiService.nodeUpdated.next(<any> { id: 'id1', name: 'file2' });
alfrescoApiService.nodeUpdated.next({ id: 'id1', name: 'file2' } as any);
fixture.detectChanges();
expect(component.fileTitle).toBe('file2');
alfrescoApiService.nodeUpdated.next(<any> { id: 'id1', name: 'file3' });
alfrescoApiService.nodeUpdated.next({ id: 'id1', name: 'file3' } as any);
fixture.detectChanges();
expect(component.fileTitle).toBe('file3');
alfrescoApiService.nodeUpdated.next(<any> { id: 'id2', name: 'file4' });
alfrescoApiService.nodeUpdated.next({ id: 'id2', name: 'file4' } as any);
fixture.detectChanges();
expect(component.fileTitle).toBe('file3');
expect(component.nodeId).toBe('id1');