summaryrefslogtreecommitdiffstats
path: root/model/channel_member_test.go
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-09-30 12:28:28 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-10-01 08:31:17 -0400
commitc9a0030551f289241407743fbd21080cd8a358a4 (patch)
tree03019a8ad970ebd66d7f5bd1a84d11fcdb76f1ff /model/channel_member_test.go
parentc16b9de8dc4924cf2fb243579284e67f55cf3a47 (diff)
downloadchat-c9a0030551f289241407743fbd21080cd8a358a4.tar.gz
chat-c9a0030551f289241407743fbd21080cd8a358a4.tar.bz2
chat-c9a0030551f289241407743fbd21080cd8a358a4.zip
Moved ChannelMember.NotifyLevel into ChannelMember.NotifyProps
Diffstat (limited to 'model/channel_member_test.go')
-rw-r--r--model/channel_member_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/model/channel_member_test.go b/model/channel_member_test.go
index 5dc34ae56..edbb46e9b 100644
--- a/model/channel_member_test.go
+++ b/model/channel_member_test.go
@@ -31,7 +31,6 @@ func TestChannelMemberIsValid(t *testing.T) {
}
o.Roles = "missing"
- o.NotifyLevel = CHANNEL_NOTIFY_ALL
o.NotifyProps = GetDefaultChannelNotifyProps()
o.UserId = NewId()
if err := o.IsValid(); err == nil {
@@ -39,17 +38,17 @@ func TestChannelMemberIsValid(t *testing.T) {
}
o.Roles = CHANNEL_ROLE_ADMIN
- o.NotifyLevel = "junk"
+ o.NotifyProps["desktop"] = "junk"
if err := o.IsValid(); err == nil {
t.Fatal("should be invalid")
}
- o.NotifyLevel = "123456789012345678901"
+ o.NotifyProps["desktop"] = "123456789012345678901"
if err := o.IsValid(); err == nil {
t.Fatal("should be invalid")
}
- o.NotifyLevel = CHANNEL_NOTIFY_ALL
+ o.NotifyProps["desktop"] = CHANNEL_NOTIFY_ALL
if err := o.IsValid(); err != nil {
t.Fatal(err)
}