Update stocks.bats
This commit is contained in:
parent
7af7e364ac
commit
e77b04603f
|
@ -25,15 +25,14 @@ fi
|
|||
}
|
||||
|
||||
@test "Get stock info by passing in ticker" {
|
||||
run stocks AAPL
|
||||
[ "$status" -eq 0 ]
|
||||
[ "${lines[0]}" = "AAPL stock info" ]
|
||||
result=$( echo $(stocks AAPL) | grep -Eo "AAPL stock info" )
|
||||
[ "$result" = "AAPL stock info" ]
|
||||
|
||||
}
|
||||
|
||||
@test "Get stock info by passing in company" {
|
||||
run stocks Tesla
|
||||
[ "$status" -eq 0 ]
|
||||
[ "${lines[0]}" = "TSLA stock info" ]
|
||||
result=$( echo $(stocks Apple) | grep -Eo "AAPL stock info" )
|
||||
[ "$result" = "AAPL stock info" ]
|
||||
}
|
||||
|
||||
@test "Get the tools version with -v" {
|
||||
|
|
Loading…
Reference in New Issue