dynamic-lookup-relation-external-source-tab.component.spec.ts (dspace-angular-dspace-7.0) | : | dynamic-lookup-relation-external-source-tab.component.spec.ts (dspace-angular-dspace-7.1) | ||
---|---|---|---|---|
skipping to change at line 29 | skipping to change at line 29 | |||
import { ExternalSourceEntry } from '../../../../../../core/shared/external-sour ce-entry.model'; | import { ExternalSourceEntry } from '../../../../../../core/shared/external-sour ce-entry.model'; | |||
import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; | import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; | |||
import { SelectableListService } from '../../../../../object-list/selectable-lis t/selectable-list.service'; | import { SelectableListService } from '../../../../../object-list/selectable-lis t/selectable-list.service'; | |||
import { Item } from '../../../../../../core/shared/item.model'; | import { Item } from '../../../../../../core/shared/item.model'; | |||
import { Collection } from '../../../../../../core/shared/collection.model'; | import { Collection } from '../../../../../../core/shared/collection.model'; | |||
import { RelationshipOptions } from '../../../models/relationship-options.model' ; | import { RelationshipOptions } from '../../../models/relationship-options.model' ; | |||
import { ExternalSourceEntryImportModalComponent } from './external-source-entry -import-modal/external-source-entry-import-modal.component'; | import { ExternalSourceEntryImportModalComponent } from './external-source-entry -import-modal/external-source-entry-import-modal.component'; | |||
import { createPaginatedList } from '../../../../../testing/utils.test'; | import { createPaginatedList } from '../../../../../testing/utils.test'; | |||
import { PaginationService } from '../../../../../../core/pagination/pagination. service'; | import { PaginationService } from '../../../../../../core/pagination/pagination. service'; | |||
import { PaginationServiceStub } from '../../../../../testing/pagination-service .stub'; | import { PaginationServiceStub } from '../../../../../testing/pagination-service .stub'; | |||
import { ItemType } from '../../../../../../core/shared/item-relationships/item- type.model'; | ||||
describe('DsDynamicLookupRelationExternalSourceTabComponent', () => { | describe('DsDynamicLookupRelationExternalSourceTabComponent', () => { | |||
let component: DsDynamicLookupRelationExternalSourceTabComponent; | let component: DsDynamicLookupRelationExternalSourceTabComponent; | |||
let fixture: ComponentFixture<DsDynamicLookupRelationExternalSourceTabComponen t>; | let fixture: ComponentFixture<DsDynamicLookupRelationExternalSourceTabComponen t>; | |||
let pSearchOptions; | let pSearchOptions; | |||
let externalSourceService; | let externalSourceService; | |||
let selectableListService; | let selectableListService; | |||
let modalService; | let modalService; | |||
const itemType = Object.assign(new ItemType(), { label: 'Person' }); | ||||
const externalSource = { | const externalSource = { | |||
id: 'orcidV2', | id: 'orcidV2', | |||
name: 'orcidV2', | name: 'orcidV2', | |||
hierarchical: false | hierarchical: false, | |||
entityTypes: createSuccessfulRemoteDataObject$(createPaginatedList([itemType | ||||
])) | ||||
} as ExternalSource; | } as ExternalSource; | |||
const externalEntries = [ | const externalEntries = [ | |||
Object.assign({ | Object.assign({ | |||
id: '0001-0001-0001-0001', | id: '0001-0001-0001-0001', | |||
display: 'John Doe', | display: 'John Doe', | |||
value: 'John, Doe', | value: 'John, Doe', | |||
metadata: { | metadata: { | |||
'dc.identifier.uri': [ | 'dc.identifier.uri': [ | |||
{ | { | |||
value: 'https://orcid.org/0001-0001-0001-0001' | value: 'https://orcid.org/0001-0001-0001-0001' | |||
End of changes. 3 change blocks. | ||||
1 lines changed or deleted | 5 lines changed or added |