Included currencies in help response.
This commit is contained in:
parent
c99210f624
commit
bd14a1e15e
3 changed files with 37 additions and 14 deletions
|
@ -45,11 +45,11 @@ class BitcoinTest : LocalProperties() {
|
|||
fun testMarketPrice() {
|
||||
var messages = marketPrice("USD")
|
||||
assertThat(messages).`as`("not empty").isNotEmpty
|
||||
assertThat(messages[0].msg).`as`("btc & $").startsWith("BTC").contains("$")
|
||||
assertThat(messages[0].msg).`as`("bitcoin & $").startsWith("BITCOIN").contains("$")
|
||||
assertThat(messages[1].msg).`as`("15m").contains("15m")
|
||||
|
||||
messages = marketPrice("GBP")
|
||||
assertThat(messages[0].msg).`as`("BPB btc & £").startsWith("BTC").contains("£")
|
||||
assertThat(messages[0].msg).`as`("£").contains("£").contains("GBP")
|
||||
assertThat(messages[1].msg).`as`("GBP 15m").contains("15m")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue