Removes last outside references to the Colour module
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
defmodule Display.Intro do
|
||||
alias Display.Colours
|
||||
alias Display.Paint
|
||||
|
||||
def intro(module, modules) do
|
||||
if not module in modules do
|
||||
@@ -11,6 +11,6 @@ defmodule Display.Intro do
|
||||
|
||||
def show_intro(message) do
|
||||
message <> "\n"
|
||||
|> Colours.green
|
||||
|> Paint.green
|
||||
end
|
||||
end
|
||||
|
@@ -1,5 +1,4 @@
|
||||
defmodule Display.ProgressBar do
|
||||
alias Display.Colours
|
||||
|
||||
@progress_bar_length 30
|
||||
|
||||
|
@@ -4,7 +4,7 @@ defmodule IntroTest do
|
||||
alias Display.Intro
|
||||
|
||||
test "module not visited yet" do
|
||||
assert Intro.intro(SampleKoan, []) == "\e[32mThere is something\n\n\e[0m"
|
||||
assert Intro.intro(SampleKoan, []) == "There is something\n\n"
|
||||
end
|
||||
|
||||
test "module has been visited" do
|
||||
|
Reference in New Issue
Block a user