(t *testing.T)
| 273 | |
| 274 | updated, _ := m.Update(keyPress("?")) |
| 275 | m = updated.(model) |
| 276 | if !strings.Contains(stripANSI(m.help.view()), "Could not save the help preference") { |
| 277 | t.Errorf("help preference failure is not visible: %q", m.help.view()) |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | func TestModelResizesContentWhenThreadHelpChangesHeight(t *testing.T) { |
| 282 | for _, width := range []int{32, 40, 48, 64, 80, 100} { |
| 283 | t.Run(strconv.Itoa(width), func(t *testing.T) { |
| 284 | m := modelWithBoxes() |
nothing calls this directly
no test coverage detected