Skip to content

Commit

Permalink
Remove color check on test
Browse files Browse the repository at this point in the history
failed locally in elixir <= 1.15
passed on CI because ansi colors are disabled
  • Loading branch information
tiagoefmoraes committed Jan 12, 2024
1 parent 5f3116e commit ce4f9d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/mix/tasks/compile/surface_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ defmodule Mix.Tasks.Compile.SurfaceTest do
assert {:ok, [^diagnostic]} = handle_diagnostics([diagnostic], [])
end)

assert output =~ IO.ANSI.format([:yellow, "warning:"]) |> IO.iodata_to_binary()
assert output =~ "warning:"
assert output =~ "test warning\n file.ex:1: (file)\n\n"
end

Expand Down

0 comments on commit ce4f9d3

Please sign in to comment.