Migrate tests to use testify (#12811)
Этот коммит содержится в:
@@ -5,6 +5,7 @@ import (
|
|||||||
|
|
||||||
"github.com/mattermost/mattermost-server/model"
|
"github.com/mattermost/mattermost-server/model"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetTermsOfService(t *testing.T) {
|
func TestGetTermsOfService(t *testing.T) {
|
||||||
@@ -13,9 +14,7 @@ func TestGetTermsOfService(t *testing.T) {
|
|||||||
Client := th.Client
|
Client := th.Client
|
||||||
|
|
||||||
_, err := th.App.CreateTermsOfService("abc", th.BasicUser.Id)
|
_, err := th.App.CreateTermsOfService("abc", th.BasicUser.Id)
|
||||||
if err != nil {
|
require.Nil(t, err)
|
||||||
t.Fatal(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
termsOfService, resp := Client.GetTermsOfService("")
|
termsOfService, resp := Client.GetTermsOfService("")
|
||||||
CheckNoError(t, resp)
|
CheckNoError(t, resp)
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user