forked from ebhomengo/niki
1
0
Fork 0

Fix(benefactor-kindBoxReqs-test): delete test assertion

Addressed #140

Signed-off-by: Reza Mobaraki <rezam578@gmail.com>
This commit is contained in:
Reza Mobaraki 2024-08-24 14:29:46 +03:30
parent 38677a0128
commit 99f710c41d
No known key found for this signature in database
GPG Key ID: 922CBCF25B541A6F
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,8 @@ import (
"git.gocasts.ir/ebhomengo/niki/entity" "git.gocasts.ir/ebhomengo/niki/entity"
benefactoreparam "git.gocasts.ir/ebhomengo/niki/param/benefactor/benefactor" benefactoreparam "git.gocasts.ir/ebhomengo/niki/param/benefactor/benefactor"
benefactorkindboxreqparam "git.gocasts.ir/ebhomengo/niki/param/benefactor/kind_box_req" benefactorkindboxreqparam "git.gocasts.ir/ebhomengo/niki/param/benefactor/kind_box_req"
errmsg "git.gocasts.ir/ebhomengo/niki/pkg/err_msg"
httpmsg "git.gocasts.ir/ebhomengo/niki/pkg/http_msg"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
@ -195,5 +197,8 @@ func (suite *BenefactorKindBoxReqsTestSuite) TestBenefactorKindBoxReqs_Delete_Su
KindBoxReqID: suite.kindBoxReqID, KindBoxReqID: suite.kindBoxReqID,
}, },
) )
message, code := httpmsg.Error(err)
suite.Require().Error(err) suite.Require().Error(err)
assert.Equal(suite.T(), http.StatusNotFound, code)
assert.Equal(suite.T(), errmsg.ErrorMsgNotFound, message)
} }