diff --git a/src/app/shared/comcol-forms/comcol-form/comcol-form.component.spec.ts b/src/app/shared/comcol-forms/comcol-form/comcol-form.component.spec.ts index 3ed55a1a38..58488f721a 100644 --- a/src/app/shared/comcol-forms/comcol-form/comcol-form.component.spec.ts +++ b/src/app/shared/comcol-forms/comcol-form/comcol-form.component.spec.ts @@ -136,7 +136,7 @@ describe('ComColFormComponent', () => { type: Community.type }, ), - uploader: {}, + uploader: {} as any, deleteLogo: false } ); diff --git a/src/app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/search-tab/dynamic-lookup-relation-search-tab.component.spec.ts b/src/app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/search-tab/dynamic-lookup-relation-search-tab.component.spec.ts index 4434684cbb..bd83a48237 100644 --- a/src/app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/search-tab/dynamic-lookup-relation-search-tab.component.spec.ts +++ b/src/app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/search-tab/dynamic-lookup-relation-search-tab.component.spec.ts @@ -113,7 +113,7 @@ describe('DsDynamicLookupRelationSearchTabComponent', () => { }); it('should emit the page filtered from not yet selected objects and call select on the service for all objects', () => { - expect(component.deselectObject.emit).toHaveBeenCalledWith(searchResult1, searchResult2); + expect((component.deselectObject as any).emit).toHaveBeenCalledWith(searchResult1, searchResult2); expect(selectableListService.deselect).toHaveBeenCalledWith(listID, [searchResult1, searchResult2, searchResult3]); }); }); @@ -137,7 +137,7 @@ describe('DsDynamicLookupRelationSearchTabComponent', () => { }); it('should emit the page filtered from not yet selected objects and call select on the service for all objects', () => { - expect(component.deselectObject.emit).toHaveBeenCalledWith(searchResult1, searchResult2); + expect((component.deselectObject as any).emit).toHaveBeenCalledWith(searchResult1, searchResult2); expect(selectableListService.deselectAll).toHaveBeenCalledWith(listID); }); }); diff --git a/src/app/shared/object-list/selectable-list/selectable-list.service.spec.ts b/src/app/shared/object-list/selectable-list/selectable-list.service.spec.ts index 7699541fe3..2d4137f031 100644 --- a/src/app/shared/object-list/selectable-list/selectable-list.service.spec.ts +++ b/src/app/shared/object-list/selectable-list/selectable-list.service.spec.ts @@ -1,10 +1,15 @@ import { Store } from '@ngrx/store'; import { async, TestBed } from '@angular/core/testing'; import { SelectableListService } from './selectable-list.service'; -import { SelectableListsState } from './selectable-list.reducer'; import { ListableObject } from '../../object-collection/shared/listable-object.model'; import { hasValue } from '../../empty.util'; -import { SelectableListDeselectAction, SelectableListDeselectSingleAction, SelectableListSelectAction, SelectableListSelectSingleAction } from './selectable-list.actions'; +import { + SelectableListDeselectAction, + SelectableListDeselectSingleAction, + SelectableListSelectAction, + SelectableListSelectSingleAction +} from './selectable-list.actions'; +import { AppState } from '../../../app.reducer'; class SelectableObject extends ListableObject { constructor(private value: string) { @@ -33,7 +38,7 @@ describe('SelectableListService', () => { const selected4 = new SelectableObject(value4); let service: SelectableListService; - const store: Store = jasmine.createSpyObj('store', { + const store: Store = jasmine.createSpyObj('store', { /* tslint:disable:no-empty */ dispatch: {}, /* tslint:enable:no-empty */