mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Resolved AOT build errors
This commit is contained in:
@@ -136,7 +136,7 @@ describe('ComColFormComponent', () => {
|
||||
type: Community.type
|
||||
},
|
||||
),
|
||||
uploader: {},
|
||||
uploader: {} as any,
|
||||
deleteLogo: false
|
||||
}
|
||||
);
|
||||
|
@@ -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);
|
||||
});
|
||||
});
|
||||
|
@@ -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<SelectableListsState> = jasmine.createSpyObj('store', {
|
||||
const store: Store<AppState> = jasmine.createSpyObj('store', {
|
||||
/* tslint:disable:no-empty */
|
||||
dispatch: {},
|
||||
/* tslint:enable:no-empty */
|
||||
|
Reference in New Issue
Block a user