Skip to content
Permalink
Browse files

check version returned by CLI is the same as in cabal file

  • Loading branch information...
piotr-iohk authored and KtorZ committed May 16, 2019
1 parent 614875e commit 9b88f1025545d30add58d822250055932596fa74
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/http-bridge/test/integration/Test/Integration/Scenario/CLISpec.hs
@@ -43,7 +43,9 @@ specNoCluster = do
it "CLI - Shows version" $ do
Stdout out <- command [] "cardano-wallet" ["--version"]
cabal <- readFile "../../cardano-wallet.cabal"
cabal `shouldContain` out
let cabalVersion = ( words $ (lines cabal) !! 1 ) !! 1
let returnedVersion = T.unpack $ T.dropEnd 1 (T.pack out)
returnedVersion `shouldBe` cabalVersion

it "CLI - Can generate mnemonics with default size" $ do
Stdout out <- command [] "cardano-wallet" ["mnemonic", "generate"]

0 comments on commit 9b88f10

Please sign in to comment.
You can’t perform that action at this time.