mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
This commit is contained in:
committed by
Carlos Tadeu Panato Junior
parent
3ea8540586
commit
aa4a7e71dd
@@ -6,6 +6,8 @@ package model
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSystemJson(t *testing.T) {
|
func TestSystemJson(t *testing.T) {
|
||||||
@@ -13,7 +15,5 @@ func TestSystemJson(t *testing.T) {
|
|||||||
json := system.ToJson()
|
json := system.ToJson()
|
||||||
result := SystemFromJson(strings.NewReader(json))
|
result := SystemFromJson(strings.NewReader(json))
|
||||||
|
|
||||||
if result.Name != "test" {
|
require.Equal(t, "test", result.Name, "ids do not match")
|
||||||
t.Fatal("Ids do not match")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user