Skip to content

Commit

Permalink
transaction id: test new flags
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Jan 8, 2025
1 parent 5695e59 commit 50fcdd8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,11 @@ hprop_golden_shelley_transaction_id = propertyOnce $ do

output1 <- execCardanoCLI baseCmd
goldenFile1 <- H.note "test/cardano-cli-golden/files/golden/shelley/transaction-id-flagless"
H.diffVsGoldenFile output1 goldenFile1
H.diffVsGoldenFile output1 goldenFile1

output2 <- execCardanoCLI $ baseCmd ++ ["--output-text"]
H.diffVsGoldenFile output2 goldenFile1

output3 <- execCardanoCLI $ baseCmd ++ ["--output-json"]
goldenFile2 <- H.note "test/cardano-cli-golden/files/golden/shelley/transaction-id.json"
H.diffVsGoldenFile output3 goldenFile2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"txhash":"345b88a38821ce10b1a19c41cbc9b48a55c26001cee4a7d2ad83fd9ddb157667"}

0 comments on commit 50fcdd8

Please sign in to comment.