fixed AoT errors

This commit is contained in:
lotte
2019-08-14 16:20:10 +02:00
parent d1dbd891b4
commit 1b6c0a9e42
2 changed files with 4 additions and 6 deletions

View File

@@ -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', () => {

View File

@@ -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', () => {