File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ testUserGroupMembersCount = do
376376
377377testUserGroupUpdateChannelsSucceeds :: (HasCallStack ) => App ()
378378testUserGroupUpdateChannelsSucceeds = do
379- (alice, tid, [_bob ]) <- createTeam OwnDomain 2
379+ (alice, tid, [bob ]) <- createTeam OwnDomain 2
380380
381381 ug <-
382382 createUserGroup alice (object [" name" .= " none" , " members" .= (mempty :: [String ])])
@@ -390,14 +390,14 @@ testUserGroupUpdateChannelsSucceeds = do
390390 >>= objConvId
391391 updateUserGroupChannels alice gid ((. id_) <$> convIds) >>= assertSuccess
392392
393- -- bobId <- asString $ bob %. "id"
393+ bobId <- asString $ bob %. " id"
394394 bindResponse (getUserGroupWithChannels alice gid) $ \ resp -> do
395395 resp. status `shouldMatchInt` 200
396396 actual <- resp. json %. " channels" >>= asList >>= traverse objQid
397397 actual `shouldMatchSet` for convIds objQid
398398
399- -- FUTUREWORK: check the actual associated channels
400- -- resp.json %. "members" `shouldMatch` [bobId]
399+ resp . json %. " channels" `shouldMatch` map ( \ convId -> object [ " id " .= convId . id_, " domain " .= convId . domain]) convIds
400+ resp. json %. " members" `shouldMatch` [bobId]
401401
402402testUserGroupUpdateChannelsNonAdmin :: (HasCallStack ) => App ()
403403testUserGroupUpdateChannelsNonAdmin = do
You can’t perform that action at this time.
0 commit comments