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