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

Function TestJournalWritePositionalDateAndContent

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

Source from the content-addressed store, hash-verified

100}
101
102func 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
116func TestJournalWriteShortFlag(t *testing.T) {
117 server := journalServer(t)

Callers

nothing calls this directly

Calls 2

journalServerFunction · 0.85
runJournalWriteFunction · 0.85

Tested by

no test coverage detected