WIP components (as built)

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 15:51:57 -04:00
1 parent 1095ed2b9d
commit 7e4f275f0a
80 files changed
+2754 -132

No files matched your search

+12
View File
@@ -55,3 +55,15 @@ func TestServiceStatusSnapshot(t *testing.T) {
ui.Column(c).Padding(16).Children(func() { ServiceStatus(c, servicesSample, ServiceStatusOptions{}) })
})
}
func TestServiceStatusRejectsUnknownHealth(t *testing.T) {
defer func() {
if recover() == nil {
t.Fatal("unknown service health accepted")
}
}()
ui.NewTester(func(c *ui.Context) {
Use(c, Settings{})
ServiceStatus(c, []ServiceItem{{Name: "API", Health: 99}}, ServiceStatusOptions{})
}, 400, 300)
}