(t *testing.T)
| 232 | } |
| 233 | |
| 234 | func 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 | } |
nothing calls this directly
no test coverage detected