| 136 | } |
| 137 | |
| 138 | func TestBoxAdditionalNames(t *testing.T) { |
| 139 | names := []string{"asidebox", "laterbox", "bubblebox"} |
| 140 | for _, name := range names { |
| 141 | t.Run(name, func(t *testing.T) { |
| 142 | resp := heyJSON(t, "box", name) |
| 143 | type BoxResponse struct { |
| 144 | Kind string `json:"kind"` |
| 145 | } |
| 146 | data := dataAs[BoxResponse](t, resp) |
| 147 | if data.Kind == "" { |
| 148 | t.Errorf("expected non-empty kind for box %s", name) |
| 149 | } |
| 150 | }) |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | func TestBoxAll(t *testing.T) { |
| 155 | resp := heyJSON(t, "box", "imbox", "--all") |