info and help with test

This commit is contained in:
Owen
2024-12-14 00:17:30 +01:00
parent 5975458407
commit 5d6e632a1d
10 changed files with 146 additions and 3 deletions
+9
View File
@@ -0,0 +1,9 @@
defmodule PlantIdDiscordBotTest.Cog.Help do
use ExUnit.Case
test "/help" do
{:ok, response} = PlantIdDiscordBot.Cog.Info.help(%{data: %{name: "help"}})
[embed] = response[:data][:embeds]
assert match?(%Nostrum.Struct.Embed{}, embed)
end
end