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 dc958f0170..83d2f3114d 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 @@ -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 \ No newline at end of file + 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 \ No newline at end of file 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"}