MCPcopy Create free account
hub / github.com/basecamp/hey-cli / TestJournalReadReturns204NoFallbackContent

Function TestJournalReadReturns204NoFallbackContent

internal/cmd/journal_test.go:234–247  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

232}
233
234func TestJournalReadReturns204NoFallbackContent(t *testing.T) {
235 server := journalServerWithReadBehavior(t, "204")
236 defer server.Close()
237
238 resp, err := runJournalRead(t, server, "2024-01-15")
239 if err != nil {
240 t.Fatalf("execute: %v", err)
241 }
242
243 // 204 from SDK and legacy /edit returns empty page — no content available.
244 if !strings.Contains(resp.Summary, "No journal entry") {
245 t.Errorf("summary = %q, want to contain %q", resp.Summary, "No journal entry")
246 }
247}

Callers

nothing calls this directly

Calls 2

runJournalReadFunction · 0.85

Tested by

no test coverage detected