From ce4f9d3fa8d6e2e89b616648729bf65a4b978b9a Mon Sep 17 00:00:00 2001 From: Tiago Moraes Date: Fri, 12 Jan 2024 10:31:49 -0300 Subject: [PATCH] Remove color check on test failed locally in elixir <= 1.15 passed on CI because ansi colors are disabled --- test/mix/tasks/compile/surface_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mix/tasks/compile/surface_test.exs b/test/mix/tasks/compile/surface_test.exs index aaf44b8b..4be4a9a7 100644 --- a/test/mix/tasks/compile/surface_test.exs +++ b/test/mix/tasks/compile/surface_test.exs @@ -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