mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 22:43:03 +00:00
Fixed "CommonJS or AMD dependencies can cause optimization bailouts." warnings
https://stackoverflow.com/questions/62592903/upgrading-to-angular-10-fix-commonjs-or-amd-dependencies-can-cause-optimizatio/62604034#62604034
This commit is contained in:
@@ -14,7 +14,7 @@ import { NO_ERRORS_SCHEMA } from '@angular/core';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { CollectionSelectComponent } from './collection-select.component';
|
||||
import { Collection } from '../../../core/shared/collection.model';
|
||||
import { of } from 'rxjs/internal/observable/of';
|
||||
import { of } from 'rxjs';
|
||||
|
||||
describe('CollectionSelectComponent', () => {
|
||||
let comp: CollectionSelectComponent;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { ItemSelectComponent } from './item-select.component';
|
||||
import { async, ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
import { Item } from '../../../core/shared/item.model';
|
||||
import { RemoteData } from '../../../core/data/remote-data';
|
||||
@@ -14,7 +14,7 @@ import { HostWindowService } from '../../host-window.service';
|
||||
import { HostWindowServiceStub } from '../../testing/host-window-service.stub';
|
||||
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { of } from 'rxjs/internal/observable/of';
|
||||
import { of } from 'rxjs';
|
||||
|
||||
describe('ItemSelectComponent', () => {
|
||||
let comp: ItemSelectComponent;
|
||||
|
@@ -5,10 +5,12 @@ import { AppState } from '../../app.reducer';
|
||||
import {
|
||||
ObjectSelectionDeselectAction,
|
||||
ObjectSelectionInitialDeselectAction,
|
||||
ObjectSelectionInitialSelectAction, ObjectSelectionResetAction,
|
||||
ObjectSelectionSelectAction, ObjectSelectionSwitchAction
|
||||
ObjectSelectionInitialSelectAction,
|
||||
ObjectSelectionResetAction,
|
||||
ObjectSelectionSelectAction,
|
||||
ObjectSelectionSwitchAction
|
||||
} from './object-select.actions';
|
||||
import { of } from 'rxjs/internal/observable/of';
|
||||
import { of } from 'rxjs';
|
||||
|
||||
describe('ObjectSelectService', () => {
|
||||
let service: ObjectSelectService;
|
||||
|
Reference in New Issue
Block a user