"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/app/collection-page/edit-collection-page/collection-source/collection-source.component.spec.ts" between
dspace-angular-dspace-7.0.tar.gz and dspace-angular-dspace-7.1.tar.gz

About: dspace-angular is the Angular-based frontend of DSpace, a digital repository system to capture, store, index, preserve and redistribute an organization’s research material in digital formats.

collection-source.component.spec.ts  (dspace-angular-dspace-7.0):collection-source.component.spec.ts  (dspace-angular-dspace-7.1)
skipping to change at line 65 skipping to change at line 65
{ {
id: 'qdc', id: 'qdc',
label: 'Qualified Dublin Core', label: 'Qualified Dublin Core',
nameSpace: 'http://purl.org/dc/terms/' nameSpace: 'http://purl.org/dc/terms/'
}, },
{ {
id: 'dim', id: 'dim',
label: 'DSpace Intermediate Metadata', label: 'DSpace Intermediate Metadata',
nameSpace: 'http://www.dspace.org/xmlns/dspace/dim' nameSpace: 'http://www.dspace.org/xmlns/dspace/dim'
} }
] ],
_links: { self: { href: 'contentsource-selflink' } }
}); });
fieldUpdate = { fieldUpdate = {
field: contentSource, field: contentSource,
changeType: undefined changeType: undefined
}; };
objectUpdatesService = jasmine.createSpyObj('objectUpdatesService', objectUpdatesService = jasmine.createSpyObj('objectUpdatesService',
{ {
getFieldUpdates: observableOf({ getFieldUpdates: observableOf({
[contentSource.uuid]: fieldUpdate [contentSource.uuid]: fieldUpdate
}), }),
skipping to change at line 118 skipping to change at line 119
url: 'http://test-url.com/test-url' url: 'http://test-url.com/test-url'
}); });
collection = Object.assign(new Collection(), { collection = Object.assign(new Collection(), {
uuid: 'fake-collection-id' uuid: 'fake-collection-id'
}); });
collectionService = jasmine.createSpyObj('collectionService', { collectionService = jasmine.createSpyObj('collectionService', {
getContentSource: createSuccessfulRemoteDataObject$(contentSource), getContentSource: createSuccessfulRemoteDataObject$(contentSource),
updateContentSource: observableOf(contentSource), updateContentSource: observableOf(contentSource),
getHarvesterEndpoint: observableOf('harvester-endpoint') getHarvesterEndpoint: observableOf('harvester-endpoint')
}); });
requestService = jasmine.createSpyObj('requestService', ['removeByHrefSubstr ing']); requestService = jasmine.createSpyObj('requestService', ['removeByHrefSubstr ing', 'setStaleByHrefSubstring']);
TestBed.configureTestingModule({ TestBed.configureTestingModule({
imports: [TranslateModule.forRoot(), RouterTestingModule], imports: [TranslateModule.forRoot(), RouterTestingModule],
declarations: [CollectionSourceComponent], declarations: [CollectionSourceComponent],
providers: [ providers: [
{ provide: ObjectUpdatesService, useValue: objectUpdatesService }, { provide: ObjectUpdatesService, useValue: objectUpdatesService },
{ provide: NotificationsService, useValue: notificationsService }, { provide: NotificationsService, useValue: notificationsService },
{ provide: Location, useValue: location }, { provide: Location, useValue: location },
{ provide: DynamicFormService, useValue: formService }, { provide: DynamicFormService, useValue: formService },
{ provide: ActivatedRoute, useValue: { parent: { data: observableOf({ ds o: createSuccessfulRemoteDataObject(collection) }) } } }, { provide: ActivatedRoute, useValue: { parent: { data: observableOf({ ds o: createSuccessfulRemoteDataObject(collection) }) } } },
 End of changes. 2 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)