From d9570411134273d690e783748dd572696fc14c6f Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Wed, 12 Oct 2022 23:43:31 +0200 Subject: Make description an optional field --- src/post/post_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/post/post_test.go') diff --git a/src/post/post_test.go b/src/post/post_test.go index c7f9cdc..7e87200 100644 --- a/src/post/post_test.go +++ b/src/post/post_test.go @@ -37,10 +37,9 @@ func TestNewID(t *testing.T) { func testPost(i int) Post { istr := strconv.Itoa(i) return Post{ - ID: istr, - Title: istr, - Description: istr, - Body: istr, + ID: istr, + Title: istr, + Body: istr, } } @@ -127,6 +126,7 @@ func TestStore(t *testing.T) { newNow := h.clock.Now().UTC() post.Title = "something else" + post.Description = "some description" post.Series = "whatever" post.Body = "anything" post.Tags = []string{"bar", "baz"} -- cgit v1.2.3