parse response and generate a interaction response

This commit is contained in:
Owen
2024-12-16 14:45:07 +01:00
parent 27838e8e1a
commit 5a5700fab7
6 changed files with 76 additions and 6 deletions
+2 -2
View File
@@ -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