From c28b78ae1d73ceefc94c66ef60f2e51d5de364b1 Mon Sep 17 00:00:00 2001 From: Jason Pollentier Date: Wed, 4 Dec 2024 17:34:25 -0700 Subject: [PATCH] chore: format the new test cases --- test/nodejs_test.exs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/test/nodejs_test.exs b/test/nodejs_test.exs index 5f5c2e1..928e180 100644 --- a/test/nodejs_test.exs +++ b/test/nodejs_test.exs @@ -261,17 +261,18 @@ defmodule NodeJS.Test do test "handles ANSI sequences without corrupting protocol" do # Test basic ANSI handling - protocol messages should work assert {:ok, "clean output"} = NodeJS.call({"terminal-test", "outputWithANSI"}) - + # Test complex ANSI sequences - protocol messages should work assert {:ok, "complex test passed"} = NodeJS.call({"terminal-test", "complexOutput"}) - + # Test multiple processes don't interfere with each other - tasks = for _ <- 1..4 do - Task.async(fn -> - NodeJS.call({"terminal-test", "outputWithANSI"}) - end) - end - + tasks = + for _ <- 1..4 do + Task.async(fn -> + NodeJS.call({"terminal-test", "outputWithANSI"}) + end) + end + results = Task.await_many(tasks) assert Enum.all?(results, &match?({:ok, "clean output"}, &1)) end