Included currencies in help response.

This commit is contained in:
Erik C. Thauvin 2021-05-04 11:05:23 -07:00
parent c99210f624
commit bd14a1e15e
3 changed files with 37 additions and 14 deletions

View file

@ -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")
}
}