diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2022-10-12 23:43:31 +0200 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2022-10-12 23:43:31 +0200 |
commit | d9570411134273d690e783748dd572696fc14c6f (patch) | |
tree | ca9d0780bdc2708e190a2194b751966546935e39 /src/post/post_test.go | |
parent | d959985ed0d3509d1369c15bf0c87c35b47eb1db (diff) |
Make description an optional field
Diffstat (limited to 'src/post/post_test.go')
-rw-r--r-- | src/post/post_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
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"} |