summaryrefslogtreecommitdiff
path: root/src/post/post_test.go
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-10-12 23:43:31 +0200
committerBrian Picciano <mediocregopher@gmail.com>2022-10-12 23:43:31 +0200
commitd9570411134273d690e783748dd572696fc14c6f (patch)
treeca9d0780bdc2708e190a2194b751966546935e39 /src/post/post_test.go
parentd959985ed0d3509d1369c15bf0c87c35b47eb1db (diff)
Make description an optional field
Diffstat (limited to 'src/post/post_test.go')
-rw-r--r--src/post/post_test.go8
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"}