To improve testing, add a layer of indirection around colours.
This commit is contained in:
@@ -4,6 +4,6 @@ defmodule NotificationTest do
|
||||
|
||||
test "shows possible koans when a koan can not be found" do
|
||||
message = Notifications.invalid_koan(SampleKoan, [PassingKoan])
|
||||
assert message == "Did not find koan SampleKoan in \e[31mPassingKoan\e[0m"
|
||||
assert message == "Did not find koan SampleKoan in PassingKoan"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user