File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
libs/wire-subsystems/test/unit/Wire/UserGroupSubsystem Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
module Wire.UserGroupSubsystem.InterpreterSpec (spec ) where
4
4
5
+ import Control.Error.Util (hush )
5
6
import Control.Lens ((.~) , (^.) )
6
7
import Control.Monad
7
8
import Data.Aeson qualified as A
@@ -266,13 +267,13 @@ spec = timeoutHook $ describe "UserGroupSubsystem.Interpreter" do
266
267
267
268
prop " team members can only get user groups from their own team" $
268
269
\ (WithMods team1 :: WithMods '[AtLeastOneNonAdmin ] ArbitraryTeam )
269
- userGroupName1
270
- (WithMods team2 :: WithMods '[AtLeastOneNonAdmin ] ArbitraryTeam )
271
- userGroupName2 ->
270
+ (WithMods team2 :: WithMods '[AtLeastOneNonAdmin ] ArbitraryTeam ) ->
272
271
expectRight
273
272
. runDependencies (allUsers team1 <> allUsers team2) (galleyTeam team1 <> galleyTeam team2)
274
273
. interpretUserGroupSubsystem
275
274
$ do
275
+ let userGroupName1 = fromJust . hush $ userGroupNameFromText " first"
276
+ let userGroupName2 = fromJust . hush $ userGroupNameFromText " second"
276
277
let newUserGroup1 =
277
278
NewUserGroup
278
279
{ name = userGroupName1,
You can’t perform that action at this time.
0 commit comments