From 68765a8f21db8a1b732f26f5bc1bf0e1a8e52d8f Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Mon, 30 Nov 2015 22:38:38 -0800 Subject: PLT-902 switching to push proxy server --- model/push_notification_test.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 model/push_notification_test.go (limited to 'model/push_notification_test.go') 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") + } +} -- cgit v1.2.3-1-g7c22