Skip to content

Commit

Permalink
replace assertFileOccurance with asserHasMappings
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-lipski committed Dec 7, 2023
1 parent b825484 commit 1b2b700
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module Test.Golden.Governance.Committee where
import Control.Monad (void)
import Text.Regex.TDFA ((=~))

import Test.Cardano.CLI.Aeson (assertHasMappings)
import Test.Cardano.CLI.Util

import Hedgehog (Property)
Expand Down Expand Up @@ -121,8 +122,9 @@ hprop_golden_governanceCommitteeCreateHotKeyAuthorizationCertificate =
, "--out-file", certFile
]

H.assertFileOccurences 1 "CertificateConway" certFile
H.assertFileOccurences 1 "Constitutional Committee Hot Key Registration Certificate" certFile
assertHasMappings [("type", "CertificateConway"),
("description", "Constitutional Committee Hot Key Registration Certificate")]
certFile

hprop_golden_governanceCommitteeCreateColdKeyResignationCertificate :: Property
hprop_golden_governanceCommitteeCreateColdKeyResignationCertificate =
Expand All @@ -144,8 +146,9 @@ hprop_golden_governanceCommitteeCreateColdKeyResignationCertificate =
, "--out-file", certFile
]

H.assertFileOccurences 1 "CertificateConway" certFile
H.assertFileOccurences 1 "Constitutional Committee Cold Key Resignation Certificate" certFile
assertHasMappings [("type", "CertificateConway"),
("description", "Constitutional Committee Cold Key Resignation Certificate")]
certFile

hprop_golden_governanceUpdateCommittee :: Property
hprop_golden_governanceUpdateCommittee =
Expand Down

0 comments on commit 1b2b700

Please sign in to comment.