mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 06:53:03 +00:00
submit to this collection
This commit is contained in:
@@ -401,6 +401,14 @@ describe('SubmissionService test suite', () => {
|
||||
service.createSubmission();
|
||||
|
||||
expect((service as any).restService.postToEndpoint).toHaveBeenCalled();
|
||||
expect((service as any).restService.postToEndpoint).toHaveBeenCalledWith('workspaceitems', {}, null, null, undefined);
|
||||
});
|
||||
|
||||
it('should create a new submission with collection', () => {
|
||||
service.createSubmission(collectionId);
|
||||
|
||||
expect((service as any).restService.postToEndpoint).toHaveBeenCalled();
|
||||
expect((service as any).restService.postToEndpoint).toHaveBeenCalledWith('workspaceitems', {}, null, null, collectionId);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user