mirror of
https://github.com/TheRealOwenRees/plantid-discord-bot.git
synced 2026-07-23 04:26:57 +00:00
17 lines
373 B
Elixir
17 lines
373 B
Elixir
defmodule PlantIdDiscordBotTest.Cog.Source do
|
|
use ExUnit.Case
|
|
|
|
@source Application.compile_env(:plantid_discord_bot, :source)
|
|
|
|
test "source" do
|
|
interaction = %{data: %{name: "source"}}
|
|
|
|
expected_response = %{
|
|
type: 4,
|
|
data: %{content: @source}
|
|
}
|
|
|
|
assert PlantIdDiscordBot.Cog.Info.source(interaction) == {:ok, expected_response}
|
|
end
|
|
end
|