diff --git a/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Transaction/Id.hs b/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Transaction/Id.hs index e502dca789..7de4d39ad5 100644 --- a/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Transaction/Id.hs +++ b/cardano-cli/test/cardano-cli-golden/Test/Golden/Shelley/Transaction/Id.hs @@ -21,3 +21,10 @@ 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 + + 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 diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/shelley/transaction-id.json b/cardano-cli/test/cardano-cli-golden/files/golden/shelley/transaction-id.json new file mode 100644 index 0000000000..f0f491c300 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/shelley/transaction-id.json @@ -0,0 +1 @@ +{"txhash":"345b88a38821ce10b1a19c41cbc9b48a55c26001cee4a7d2ad83fd9ddb157667"}