chore: noise in tests

This commit is contained in:
2026-05-04 06:18:06 +02:00
parent 4de8492c4f
commit 43a4610ce7
48 changed files with 619 additions and 239 deletions

View File

@@ -151,7 +151,10 @@ defmodule BDS.Desktop.ShellLive.ScriptEditor do
socket
|> assign(:draft, nil)
|> build_data()
|> notify_output(dgettext("ui", "Scripts"), dgettext("ui", "Script published"))
|> notify_output(
dgettext("ui", "Scripts"),
dgettext("ui", "Script published")
)
|> notify_reload()
{:error, reason} ->
@@ -273,8 +276,8 @@ defmodule BDS.Desktop.ShellLive.ScriptEditor do
| Regex.scan(~r/function\s+([A-Za-z_][A-Za-z0-9_]*)\s*\(/, content || "",
capture: :all_but_first
)
|> List.flatten()
|> Enum.reject(&(&1 == "main"))
|> List.flatten()
|> Enum.reject(&(&1 == "main"))
]
end
@@ -287,4 +290,4 @@ defmodule BDS.Desktop.ShellLive.ScriptEditor do
send(self(), :reload_shell)
socket
end
end
end