Extracts modules for different sections of the UI
This commit is contained in:
13
test/display/intro_test.exs
Normal file
13
test/display/intro_test.exs
Normal file
@@ -0,0 +1,13 @@
|
||||
defmodule IntroTest do
|
||||
use ExUnit.Case
|
||||
|
||||
alias Display.Intro
|
||||
|
||||
test "module not visited yet" do
|
||||
assert Intro.intro(SampleKoan, []) == "\e[32mThere is something\n\n\e[0m"
|
||||
end
|
||||
|
||||
test "module has been visited" do
|
||||
assert Intro.intro(SampleKoan, [SampleKoan]) == ""
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user