Skip to content

Commit

Permalink
Merge pull request #16 from dtduc91/Correct-typo
Browse files Browse the repository at this point in the history
Correct typo
  • Loading branch information
cy-kaneko authored Sep 27, 2017
2 parents 8bd0b19 + 1dadcdb commit 757fe32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions comment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
`)

Expand All @@ -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)
Expand All @@ -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)
}
}
}

0 comments on commit 757fe32

Please sign in to comment.