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 '..';
77const apolloClientMock = createMockClient ( ) ;
88
99describe ( '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+
1018 it ( 'can get all groups' , ( ) => {
1119 const allGroups = GroupServiceEngine . requestAllGroups ( {
1220 apolloClientMock,
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ class GroupService {
7070}
7171
7272export const GroupServiceEngine = {
73+ requestAllGroupsRest : action => GroupService . getGroupsRest ( action ) ,
7374 requestAllGroups : action => GroupService . getAllGroups ( action ) ,
7475 createGroup : action => GroupService . createGroup ( action ) ,
7576 updateGroup : action => GroupService . updateGroup ( action ) ,
You can’t perform that action at this time.
0 commit comments