Skip to content

Commit

Permalink
Update cardano-cli/test/cardano-cli-test-lib/Test/Cardano/CLI/Aeson.hs
Browse files Browse the repository at this point in the history
Co-authored-by: Mateusz Galazyn <[email protected]>
  • Loading branch information
smelc and carbolymer authored Nov 9, 2023
1 parent 2f50585 commit 855cd3c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ import qualified Hedgehog.Extras as H
-- For example. if @path@ contains @"{ "a":0, "b":1.0, "c": "foo"}"@,
-- @hasKeys ["b", "a"] path@ succeeds.
assertHasKeys :: ()
=> HasCallStack
=> MonadTest m
=> MonadIO m
=> [Text]
-> FilePath
-> m ()
assertHasKeys keys jsonFile = do
assertHasKeys keys jsonFile = withFrozenCallStack $ do
content <- liftIO $ LBS.readFile jsonFile
case decode content of
Nothing -> do
Expand Down

0 comments on commit 855cd3c

Please sign in to comment.