Migrate tests from "model/switch_request_test.go" to use testi… (#12554)

Этот коммит содержится в:
Aliaksandr Kantsevoi
2019-10-08 08:27:53 +02:00
коммит произвёл Ben Schumacher
родитель f21b7618a4
Коммит 041c914de7

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

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