mirror of
https://github.com/TheRealOwenRees/plantid-discord-bot.git
synced 2026-07-23 12:36:58 +00:00
parse response and generate a interaction response
This commit is contained in:
@@ -4,10 +4,10 @@ defmodule PlantIdDiscordBotTest.PlantNet.Parser do
|
||||
|
||||
doctest PlantIdDiscordBot.PlantNet.Parser
|
||||
|
||||
test "parse" do
|
||||
test "to_map" do
|
||||
result =
|
||||
PlantNetFixtures.raw_response()
|
||||
|> Parser.parse()
|
||||
|> Parser.to_map()
|
||||
|
||||
assert result == PlantNetFixtures.parsed_response()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user