forked from ebhomengo/niki
Fix(benefactor-kindBoxReqs-test): delete test assertion
Addressed #140 Signed-off-by: Reza Mobaraki <rezam578@gmail.com>
This commit is contained in:
parent
38677a0128
commit
99f710c41d
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue