Skip to content

Commit d022b45

Browse files
waynemsmithclaude
andcommitted
Assert call count before indexing in search test
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dc254dd commit d022b45

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/commands/search_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ func TestSearch(t *testing.T) {
139139
searchBoard = ""
140140

141141
assertExitCode(t, err, 0)
142+
if len(mock.GetWithPaginationCalls) != 1 {
143+
t.Fatalf("expected 1 GetWithPagination call, got %d", len(mock.GetWithPaginationCalls))
144+
}
142145
path := mock.GetWithPaginationCalls[0].Path
143146
if path != "/cards.json?terms[]=bug" {
144147
t.Errorf("expected no board_ids in path, got '%s'", path)

0 commit comments

Comments
 (0)