(t *testing.T)
| 100 | } |
| 101 | |
| 102 | func TestJournalWritePositionalDateAndContent(t *testing.T) { |
| 103 | server := journalServer(t) |
| 104 | defer server.Close() |
| 105 | |
| 106 | resp, err := runJournalWrite(t, server, "2024-01-15", "Retrospective") |
| 107 | if err != nil { |
| 108 | t.Fatalf("execute: %v", err) |
| 109 | } |
| 110 | |
| 111 | if !strings.Contains(resp.Summary, "2024-01-15") { |
| 112 | t.Errorf("summary = %q, want to contain date", resp.Summary) |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | func TestJournalWriteShortFlag(t *testing.T) { |
| 117 | server := journalServer(t) |
nothing calls this directly
no test coverage detected