We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f41a74 commit e209532Copy full SHA for e209532
internal/tui/model_test.go
@@ -371,17 +371,16 @@ func TestModel_LineSelectionAndScrolling(t *testing.T) {
371
372
func TestModel_Update_FileWatcher(t *testing.T) {
373
m := initialModel()
374
- // Use the blank identifier _ to ignore the returned model
375
_, cmd := m.Update(fileWatcherMsg{})
376
377
if cmd == nil {
378
t.Fatal("expected a command to be returned")
379
}
380
381
cmds := cmd().(tea.BatchMsg)
382
- // Cast totalPanels to an int for comparison
383
- if len(cmds) != int(totalPanels) {
384
- t.Errorf("expected %d commands, got %d", totalPanels, len(cmds))
+ expectedCmds := 5
+ if len(cmds) != expectedCmds {
+ t.Errorf("expected %d commands, got %d", expectedCmds, len(cmds))
385
386
387
0 commit comments