File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
src/client/shared/services/group Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,14 @@ import { GroupServiceEngine } from '..';
7
7
const apolloClientMock = createMockClient ( ) ;
8
8
9
9
describe ( 'Group Service' , ( ) => {
10
+ it ( 'can get all groups (rest)' , async ( ) => {
11
+ const allGroups = await GroupServiceEngine . requestAllGroupsRest ( {
12
+ apolloClientMock,
13
+ data : { }
14
+ } ) ;
15
+ expect ( ( allGroups . subscribe ( ) as any ) . data ) . toStrictEqual ( undefined ) ;
16
+ } ) ;
17
+
10
18
it ( 'can get all groups' , ( ) => {
11
19
const allGroups = GroupServiceEngine . requestAllGroups ( {
12
20
apolloClientMock,
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ class GroupService {
70
70
}
71
71
72
72
export const GroupServiceEngine = {
73
+ requestAllGroupsRest : action => GroupService . getGroupsRest ( action ) ,
73
74
requestAllGroups : action => GroupService . getAllGroups ( action ) ,
74
75
createGroup : action => GroupService . createGroup ( action ) ,
75
76
updateGroup : action => GroupService . updateGroup ( action ) ,
You can’t perform that action at this time.
0 commit comments