summaryrefslogtreecommitdiffstats
path: root/model/channel_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/channel_test.go')
-rw-r--r--model/channel_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/model/channel_test.go b/model/channel_test.go
index ee6a70b0d..ed6aed919 100644
--- a/model/channel_test.go
+++ b/model/channel_test.go
@@ -27,6 +27,15 @@ func TestChannelJson(t *testing.T) {
}
}
+func TestChannelCopy(t *testing.T) {
+ o := Channel{Id: NewId(), Name: NewId()}
+ ro := o.DeepCopy()
+
+ if o.Id != ro.Id {
+ t.Fatal("Ids do not match")
+ }
+}
+
func TestChannelPatch(t *testing.T) {
p := &ChannelPatch{Name: new(string), DisplayName: new(string), Header: new(string), Purpose: new(string)}
*p.Name = NewId()