We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02870e4 commit c99a1d5Copy full SHA for c99a1d5
test/Test/Assert.hs
@@ -49,11 +49,7 @@ satisfies app p env = runAppAsIO env app >>= \case
49
-- | Checks whether action fails and returns given error.
50
failsWith :: (Show a) => App a -> AppErrorType -> AppEnv -> Expectation
51
failsWith app err env = runAppAsIO env app >>= \case
52
- Left e@AppError{..} ->
53
- if appErrorType == err
54
- then appErrorType `shouldBe` err
55
- else expectationFailure $
56
- "Expected 'Failure' with: " <> show err <> " but got: " <> show e
+ Left AppError{..} -> appErrorType `shouldBe` err
57
Right a -> expectationFailure $
58
"Expected 'Failure' with: " <> show err <> " but got: " <> show a
59
0 commit comments