Fix error
This commit is contained in:
parent
6ddfd07032
commit
827040f279
@ -402,7 +402,7 @@ bodyContains text = withResponse $ \ res ->
|
||||
bodyNotContains :: String -> YesodExample site ()
|
||||
bodyNotContains text = withResponse $ \ res ->
|
||||
liftIO $ HUnit.assertBool ("Expected body not to contain " ++ text) $
|
||||
not . contains (simpleBody res) text
|
||||
not $ contains (simpleBody res) text
|
||||
|
||||
contains :: BSL8.ByteString -> String -> Bool
|
||||
contains a b = DL.isInfixOf b (TL.unpack $ decodeUtf8 a)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user