Skip to content

Commit 2be95d5

Browse files
committed
Fixup 1f4e376
1 parent 51c22fa commit 2be95d5

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

libs/hscim/test/Test/Class/GroupSpec.hs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import Web.Scim.Server (GroupAPI, groupServer, mkapp)
4242
import Web.Scim.Server.Mock
4343
import Web.Scim.Test.Util
4444

45-
fail_ :: String -> WaiSession () a
45+
fail_ :: (HasCallStack) => String -> WaiSession () a
4646
fail_ = liftIO . assertFailure
4747

4848
getJson :: BS.ByteString -> WaiSession () A.Value
@@ -59,8 +59,8 @@ app :: IO Application
5959
app = do
6060
storage <- emptyTestStorage
6161
let auth = Just "authorized"
62-
pure $
63-
mkapp @Mock
62+
pure
63+
$ mkapp @Mock
6464
(Proxy @(GroupAPI Mock))
6565
(toServant (groupServer @Mock auth))
6666
(nt storage)
@@ -81,9 +81,13 @@ spec = with app $ do
8181
numFieldMatch v field expected = do
8282
case v ^? A.key (fromString field) . A._Number of
8383
Just gotten ->
84-
when (gotten /= fromIntegral expected) $
85-
fail_ $
86-
field <> " is " <> show gotten <> " instead of " <> show expected
84+
when (gotten /= fromIntegral expected)
85+
$ fail_
86+
$ field
87+
<> " is "
88+
<> show gotten
89+
<> " instead of "
90+
<> show expected
8791
Nothing -> fail_ $ "missing field: " <> field
8892

8993
hasMembers :: (HasCallStack) => WaiSession () A.Value -> Int -> Int -> Int -> WaiSession () ()

0 commit comments

Comments
 (0)