mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 13:03:04 +00:00
69110: EPerson Service tests
This commit is contained in:
16
src/app/shared/testing/group-mock.ts
Normal file
16
src/app/shared/testing/group-mock.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Group } from '../../core/eperson/models/group.model';
|
||||
|
||||
export const GroupMock: Group = Object.assign(new Group(), {
|
||||
handle: null,
|
||||
groups: [],
|
||||
selfRegistered: false,
|
||||
_links: {
|
||||
self: {
|
||||
href: 'https://dspace.4science.it/dspace-spring-rest/api/eperson/groups/testgroupid',
|
||||
},
|
||||
groups: { href: 'https://dspace.4science.it/dspace-spring-rest/api/eperson/groups/testgroupid/groups' }
|
||||
},
|
||||
id: 'testgroupid',
|
||||
uuid: 'testgroupid',
|
||||
type: 'group',
|
||||
});
|
Reference in New Issue
Block a user