Implement some channel endpoints for APIv4 (#5767)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
04c0223c64
Коммит
d757645c24
@@ -69,3 +69,17 @@ func TestChannelMemberIsValid(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestChannelUnreadJson(t *testing.T) {
|
||||
o := ChannelUnread{ChannelId: NewId(), TeamId: NewId(), MsgCount: 5, MentionCount: 3}
|
||||
json := o.ToJson()
|
||||
ro := ChannelUnreadFromJson(strings.NewReader(json))
|
||||
|
||||
if o.TeamId != ro.TeamId {
|
||||
t.Fatal("Team Ids do not match")
|
||||
}
|
||||
|
||||
if o.MentionCount != ro.MentionCount {
|
||||
t.Fatal("MentionCount do not match")
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user