Migrate tests from model/compliance_test.go to use testify (#12497)

Этот коммит содержится в:
TPaschalis
2019-10-11 15:59:11 +03:00
коммит произвёл Jesús Espino
родитель 40ff87637d
Коммит 23d495beca

Просмотреть файл

@@ -6,6 +6,8 @@ package model
import (
"strings"
"testing"
"github.com/stretchr/testify/require"
)
func TestCompliance(t *testing.T) {
@@ -13,7 +15,5 @@ func TestCompliance(t *testing.T) {
json := o.ToJson()
result := ComplianceFromJson(strings.NewReader(json))
if o.Desc != result.Desc {
t.Fatal("JobName do not match")
}
require.Equal(t, o.Desc, result.Desc, "JobName do not match")
}