diff options
author | =Corey Hulen <corey@hulen.com> | 2015-11-30 22:38:38 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-11-30 22:38:38 -0800 |
commit | 68765a8f21db8a1b732f26f5bc1bf0e1a8e52d8f (patch) | |
tree | bc3d4e1f75398a84cc3be049b23cd29466e780a4 /model/push_notification_test.go | |
parent | b717a8100c3f2049fb94040ad8db11f56c0d9f13 (diff) | |
download | chat-68765a8f21db8a1b732f26f5bc1bf0e1a8e52d8f.tar.gz chat-68765a8f21db8a1b732f26f5bc1bf0e1a8e52d8f.tar.bz2 chat-68765a8f21db8a1b732f26f5bc1bf0e1a8e52d8f.zip |
PLT-902 switching to push proxy server
Diffstat (limited to 'model/push_notification_test.go')
-rw-r--r-- | model/push_notification_test.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/model/push_notification_test.go b/model/push_notification_test.go new file mode 100644 index 000000000..94329f389 --- /dev/null +++ b/model/push_notification_test.go @@ -0,0 +1,19 @@ +// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +package model + +import ( + "strings" + "testing" +) + +func TestPushNotification(t *testing.T) { + msg := PushNotification{Platform: "test"} + json := msg.ToJson() + result := PushNotificationFromJson(strings.NewReader(json)) + + if msg.Platform != result.Platform { + t.Fatal("Ids do not match") + } +} |