PLT-2115 adding compliance feature to enterprise

Этот коммит содержится в:
=Corey Hulen
2016-03-10 09:39:05 -08:00
родитель cbf84c8bea
Коммит 6d21a339dc
6 изменённых файлов: 256 добавлений и 0 удалений

27
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()
}
}