summaryrefslogtreecommitdiffstats
path: root/model/compliance_post_test.go
blob: 49f41a1216d24fbf06710484b7f66a2843937235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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", PostFileIds: "files", PostCreateAt: GetMillis()}
	r := o.Row()

	if r[0] != "test" {
		t.Fatal()
	}

	if r[len(r)-1] != "files" {
		t.Fatal()
	}
}