| 1 | package cli |
| 2 | |
| 3 | import ( |
| 4 | "flag" |
| 5 | "strings" |
| 6 | "testing" |
| 7 | |
| 8 | "reasonix/internal/remote/bootstrap" |
| 9 | ) |
| 10 | |
| 11 | func TestServeCapabilityHelpAdvertisesBootstrapProbeToken(t *testing.T) { |
| 12 | fs := flag.NewFlagSet("serve", flag.ContinueOnError) |
| 13 | registerServeCapabilityFlags(fs) |
| 14 | usage := fs.Lookup("session-events").Usage |
| 15 | if !strings.Contains(usage, bootstrap.ServeCapsToken) { |
| 16 | t.Fatalf("session-events help = %q, want capability token %q", usage, bootstrap.ServeCapsToken) |
| 17 | } |
| 18 | } |
| 19 |