summaryrefslogtreecommitdiffstats
path: root/model/compliance_post_test.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-03-17 13:16:10 -0700
committerCorey Hulen <corey@hulen.com>2016-03-17 13:16:10 -0700
commit53d7718e57d4225eb5c020324d32cbe5b5eca7ad (patch)
tree9e549812c250513d56dd631c65c49402ea549ff7 /model/compliance_post_test.go
parent8d571ee498c97128bd797f8ac1cb4c3c995fb875 (diff)
parent2e5cc29738340c7330d1b2606ceba40865872e4c (diff)
downloadchat-53d7718e57d4225eb5c020324d32cbe5b5eca7ad.tar.gz
chat-53d7718e57d4225eb5c020324d32cbe5b5eca7ad.tar.bz2
chat-53d7718e57d4225eb5c020324d32cbe5b5eca7ad.zip
Merge pull request #2442 from mattermost/PLT-2115
PLT-2115 adding compliance feature
Diffstat (limited to 'model/compliance_post_test.go')
-rw-r--r--model/compliance_post_test.go27
1 files changed, 27 insertions, 0 deletions
diff --git a/model/compliance_post_test.go b/model/compliance_post_test.go
new file mode 100644
index 000000000..28e20ba4b
--- /dev/null
+++ b/model/compliance_post_test.go
@@ -0,0 +1,27 @@
+// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+package model
+
+import (
+ "testing"
+)
+
+func TestCompliancePostHeader(t *testing.T) {
+ if CompliancePostHeader()[0] != "TeamName" {
+ t.Fatal()
+ }
+}
+
+func TestCompliancePost(t *testing.T) {
+ o := CompliancePost{TeamName: "test", PostFilenames: "files", PostCreateAt: GetMillis()}
+ r := o.Row()
+
+ if r[0] != "test" {
+ t.Fatal()
+ }
+
+ if r[len(r)-1] != "files" {
+ t.Fatal()
+ }
+}