Этот коммит содержится в:
коммит произвёл
Carlos Tadeu Panato Junior
родитель
3ea8540586
Коммит
aa4a7e71dd
@@ -6,6 +6,8 @@ package model
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestSystemJson(t *testing.T) {
|
||||
@@ -13,7 +15,5 @@ func TestSystemJson(t *testing.T) {
|
||||
json := system.ToJson()
|
||||
result := SystemFromJson(strings.NewReader(json))
|
||||
|
||||
if result.Name != "test" {
|
||||
t.Fatal("Ids do not match")
|
||||
}
|
||||
require.Equal(t, "test", result.Name, "ids do not match")
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user