Files
orchestra/internal/authz/authz_test.go
T

16 lines
385 B
Go

package authz
import "testing"
func TestSurfaceCapabilities(t *testing.T) {
if Telegram.CanEmit("TaskCreated") || Ntfy.CanEmit("ApprovalRequested") {
t.Fatal("notify surface emitted an event")
}
if !TUI.CanEmit("TaskCreated") {
t.Fatal("control surface cannot emit")
}
if !MCP.CanEmit("ApprovalRequested") || MCP.CanEmit("TaskCreated") {
t.Fatal("mcp gate is wrong")
}
}