mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
fixed AoT errors
This commit is contained in:
@@ -58,7 +58,7 @@ describe('SearchFiltersComponent', () => {
|
||||
describe('when the getSearchLink method is called', () => {
|
||||
beforeEach(() => {
|
||||
spyOn(searchService, 'getSearchLink');
|
||||
comp.getSearchLink();
|
||||
(comp as any).getSearchLink();
|
||||
});
|
||||
|
||||
it('should call getSearchLink on the searchService', () => {
|
||||
|
@@ -1,16 +1,14 @@
|
||||
import { ItemTypeSwitcherComponent } from './item-type-switcher.component';
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
||||
import { of as observableOf } from 'rxjs';
|
||||
import { PageInfo } from '../../../core/shared/page-info.model';
|
||||
import { Item } from '../../../core/shared/item.model';
|
||||
import { PaginatedList } from '../../../core/data/paginated-list';
|
||||
import { RemoteData } from '../../../core/data/remote-data';
|
||||
import * as decorator from '../item-type-decorator';
|
||||
import { getComponentByItemType, ItemViewMode } from '../item-type-decorator';
|
||||
import { ItemMetadataRepresentation } from '../../../core/shared/metadata-representation/item/item-metadata-representation.model';
|
||||
import createSpy = jasmine.createSpy;
|
||||
import { createSuccessfulRemoteDataObject$ } from '../../testing/utils';
|
||||
import createSpy = jasmine.createSpy;
|
||||
|
||||
const relationType = 'type';
|
||||
const mockItem: Item = Object.assign(new Item(), {
|
||||
@@ -61,7 +59,7 @@ describe('ItemTypeSwitcherComponent', () => {
|
||||
|
||||
describe('when calling getComponent', () => {
|
||||
beforeEach(() => {
|
||||
comp.getComponent();
|
||||
(comp as any).getComponent();
|
||||
});
|
||||
|
||||
it('should call getComponentByItemType with parameters type and viewMode', () => {
|
||||
@@ -79,7 +77,7 @@ describe('ItemTypeSwitcherComponent', () => {
|
||||
|
||||
describe('when calling getComponent', () => {
|
||||
beforeEach(() => {
|
||||
comp.getComponent();
|
||||
(comp as any).getComponent();
|
||||
});
|
||||
|
||||
it('should call getComponentByItemType with parameters type, viewMode and representationType', () => {
|
||||
|
Reference in New Issue
Block a user