feat: terminal UI over the shared workbench core (issue #26, phase 4)
This commit is contained in:
@@ -14,6 +14,10 @@ defmodule BDS.ServerTest do
|
||||
assert Server.mode("SERVER") == :server
|
||||
end
|
||||
|
||||
test "recognizes tui mode" do
|
||||
assert Server.mode("tui") == :tui
|
||||
end
|
||||
|
||||
test "unknown values fall back to :desktop" do
|
||||
assert Server.mode("garbage") == :desktop
|
||||
end
|
||||
@@ -103,6 +107,11 @@ defmodule BDS.ServerTest do
|
||||
end)
|
||||
end
|
||||
|
||||
test "tui mode is the server plus a local TUI" do
|
||||
assert BDS.Application.mode_children(:tui, :prod) ==
|
||||
BDS.Application.mode_children(:server, :prod) ++ [{BDS.TUI, []}]
|
||||
end
|
||||
|
||||
test "desktop mode delegates to desktop_children" do
|
||||
assert BDS.Application.mode_children(:desktop, :test) ==
|
||||
BDS.Application.desktop_children(:test)
|
||||
|
||||
Reference in New Issue
Block a user