Skip to content

Commit

Permalink
check version returned by CLI is the same as in cabal file
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Stachyra authored and KtorZ committed May 16, 2019
1 parent 614875e commit 9b88f10
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -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"]
Expand Down

0 comments on commit 9b88f10

Please sign in to comment.