diff options
author | =Corey Hulen <corey@hulen.com> | 2016-01-08 12:41:26 -0600 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-01-08 12:41:26 -0600 |
commit | 3fba8e42b140c1189bf3c06882cce5e2231e63da (patch) | |
tree | 7a0721cecf6624fc9c1fd71449628472b941ddeb /model/command_response_test.go | |
parent | 001a4448ca5fb0018eeb442915b473b121c04bf3 (diff) | |
download | chat-3fba8e42b140c1189bf3c06882cce5e2231e63da.tar.gz chat-3fba8e42b140c1189bf3c06882cce5e2231e63da.tar.bz2 chat-3fba8e42b140c1189bf3c06882cce5e2231e63da.zip |
partial fix for UI
Diffstat (limited to 'model/command_response_test.go')
-rw-r--r-- | model/command_response_test.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/model/command_response_test.go b/model/command_response_test.go new file mode 100644 index 000000000..7aa3e984b --- /dev/null +++ b/model/command_response_test.go @@ -0,0 +1,19 @@ +// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +package model + +import ( + "strings" + "testing" +) + +func TestCommandResponseJson(t *testing.T) { + o := CommandResponse{Text: "test"} + json := o.ToJson() + ro := CommandResponseFromJson(strings.NewReader(json)) + + if o.Text != ro.Text { + t.Fatal("Ids do not match") + } +} |