From c8fdaceae07137729a0179eb46068831c098387e Mon Sep 17 00:00:00 2001 From: Duong Trong Duc Date: Wed, 27 Sep 2017 15:22:23 +0700 Subject: [PATCH 1/2] Correct typo --- comment_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comment_test.go b/comment_test.go index 1a7d5f2..13c5736 100644 --- a/comment_test.go +++ b/comment_test.go @@ -3,7 +3,7 @@ package kintone import "testing" func TestDecodeRecordComments(t *testing.T) { - j := []byte(` + j := []byte(` {"comments":[{"id":"2","text":"ほげほげ","createdAt":"2016-11-07T19:53:32Z","creator":{"code":"xxx.tat","name":"さんぷる"},"mentions":[{"code":"wolf","type":"USER"}]},{"id":"1","text":"ふがふが","createdAt":"2016-11-07T19:53:27Z","creator":{"code":"xxx.tat","name":"さんぷる"},"mentions":[]}],"older":false,"newer":false} `) @@ -29,5 +29,5 @@ func TestDecodeRecordComments(t *testing.T) { } if rec[0].Mentions[0].Code != "wolf" { t.Errorf("comment mention-code mismatch. actual %v", rec[0].Mentions[0].Code) - } + } } From 1dadcdbef085562aae3fa25c87cf83a3677bc90e Mon Sep 17 00:00:00 2001 From: Duong Trong Duc Date: Wed, 27 Sep 2017 15:25:36 +0700 Subject: [PATCH 2/2] Correct typo --- comment_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comment_test.go b/comment_test.go index 13c5736..5f8abf6 100644 --- a/comment_test.go +++ b/comment_test.go @@ -12,7 +12,7 @@ func TestDecodeRecordComments(t *testing.T) { t.Fatal(err) } if len(rec) != 2 { - t.Fatal("invalud record count!") + t.Fatal("invalid record count!") } if rec[0].Id != "2" { t.Errorf("comment id mismatch. actual %v", rec[0].Id)