Builds: design 47 G GR8 (per-verb grants), area 2 of the join Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
20 lines
537 B
Go
20 lines
537 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
// The operator channel's notify, which notifyOperator calls, is in the manifest's invokes, which the grants part reads per
|
|
// verb (design 47 G GR8): without it the call is refused live.
|
|
func TestTheManifestInvokesTheNotifyTheModuleCalls(t *testing.T) {
|
|
raw, err := os.ReadFile("../../module.json")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if !strings.Contains(string(raw), `"seat:operator-channel.notify"`) {
|
|
t.Error("the manifest does not invoke seat:operator-channel.notify")
|
|
}
|
|
}
|