journal.component.spec.ts (dspace-angular-dspace-7.0) | : | journal.component.spec.ts (dspace-angular-dspace-7.1) | ||
---|---|---|---|---|
skipping to change at line 31 | skipping to change at line 31 | |||
import { Item } from '../../../../core/shared/item.model'; | import { Item } from '../../../../core/shared/item.model'; | |||
import { PageInfo } from '../../../../core/shared/page-info.model'; | import { PageInfo } from '../../../../core/shared/page-info.model'; | |||
import { UUIDService } from '../../../../core/shared/uuid.service'; | import { UUIDService } from '../../../../core/shared/uuid.service'; | |||
import { isNotEmpty } from '../../../../shared/empty.util'; | import { isNotEmpty } from '../../../../shared/empty.util'; | |||
import { TranslateLoaderMock } from '../../../../shared/mocks/translate-loader.m ock'; | import { TranslateLoaderMock } from '../../../../shared/mocks/translate-loader.m ock'; | |||
import { NotificationsService } from '../../../../shared/notifications/notificat ions.service'; | import { NotificationsService } from '../../../../shared/notifications/notificat ions.service'; | |||
import { createSuccessfulRemoteDataObject$ } from '../../../../shared/remote-dat a.utils'; | import { createSuccessfulRemoteDataObject$ } from '../../../../shared/remote-dat a.utils'; | |||
import { TruncatableService } from '../../../../shared/truncatable/truncatable.s ervice'; | import { TruncatableService } from '../../../../shared/truncatable/truncatable.s ervice'; | |||
import { TruncatePipe } from '../../../../shared/utils/truncate.pipe'; | import { TruncatePipe } from '../../../../shared/utils/truncate.pipe'; | |||
import { JournalComponent } from './journal.component'; | import { JournalComponent } from './journal.component'; | |||
import { RouteService } from '../../../../core/services/route.service'; | ||||
let comp: JournalComponent; | let comp: JournalComponent; | |||
let fixture: ComponentFixture<JournalComponent>; | let fixture: ComponentFixture<JournalComponent>; | |||
const mockItem: Item = Object.assign(new Item(), { | const mockItem: Item = Object.assign(new Item(), { | |||
bundles: createSuccessfulRemoteDataObject$(buildPaginatedList(new PageInfo(), [])), | bundles: createSuccessfulRemoteDataObject$(buildPaginatedList(new PageInfo(), [])), | |||
metadata: { | metadata: { | |||
'creativeworkseries.issn': [ | 'creativeworkseries.issn': [ | |||
{ | { | |||
language: 'en_US', | language: 'en_US', | |||
skipping to change at line 89 | skipping to change at line 90 | |||
{ provide: UUIDService, useValue: {} }, | { provide: UUIDService, useValue: {} }, | |||
{ provide: Store, useValue: {} }, | { provide: Store, useValue: {} }, | |||
{ provide: RemoteDataBuildService, useValue: {} }, | { provide: RemoteDataBuildService, useValue: {} }, | |||
{ provide: CommunityDataService, useValue: {} }, | { provide: CommunityDataService, useValue: {} }, | |||
{ provide: HALEndpointService, useValue: {} }, | { provide: HALEndpointService, useValue: {} }, | |||
{ provide: HttpClient, useValue: {} }, | { provide: HttpClient, useValue: {} }, | |||
{ provide: DSOChangeAnalyzer, useValue: {} }, | { provide: DSOChangeAnalyzer, useValue: {} }, | |||
{ provide: NotificationsService, useValue: {} }, | { provide: NotificationsService, useValue: {} }, | |||
{ provide: DefaultChangeAnalyzer, useValue: {} }, | { provide: DefaultChangeAnalyzer, useValue: {} }, | |||
{ provide: BitstreamDataService, useValue: mockBitstreamDataService }, | { provide: BitstreamDataService, useValue: mockBitstreamDataService }, | |||
{ provide: RouteService, useValue: {} } | ||||
], | ], | |||
schemas: [NO_ERRORS_SCHEMA] | schemas: [NO_ERRORS_SCHEMA] | |||
}).overrideComponent(JournalComponent, { | }).overrideComponent(JournalComponent, { | |||
set: { changeDetection: ChangeDetectionStrategy.Default } | set: { changeDetection: ChangeDetectionStrategy.Default } | |||
}).compileComponents(); | }).compileComponents(); | |||
})); | })); | |||
beforeEach(waitForAsync(() => { | beforeEach(waitForAsync(() => { | |||
fixture = TestBed.createComponent(JournalComponent); | fixture = TestBed.createComponent(JournalComponent); | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added |