forked from ebhomengo/niki
test(end2end): fix
Signed-off-by: Reza Mobaraki <rezam578@gmail.com>
This commit is contained in:
parent
00de075ad3
commit
9458e4fa2e
|
|
@ -143,7 +143,7 @@ func (suite *BenefactorAddressTestSuit) TestBenefactorAddressCreate() {
|
||||||
|
|
||||||
suite.T().Run("Failure_BadRequest", func(t *testing.T) {
|
suite.T().Run("Failure_BadRequest", func(t *testing.T) {
|
||||||
responseRecord := CreateRequest("POST", url, token, nil) // No data provided
|
responseRecord := CreateRequest("POST", url, token, nil) // No data provided
|
||||||
suite.Require().Equal(http.StatusBadRequest, responseRecord.Code)
|
suite.Require().Equal(http.StatusUnprocessableEntity, responseRecord.Code)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ func (suite *BenefactorKindBoxTestSuite) TestBenefactorKindBoxGet() {
|
||||||
token := LoginBenefactor(suite.benefactorPhone)
|
token := LoginBenefactor(suite.benefactorPhone)
|
||||||
url := fmt.Sprintf("/benefactor/kindboxes/%d", 9999) // Non-existent ID
|
url := fmt.Sprintf("/benefactor/kindboxes/%d", 9999) // Non-existent ID
|
||||||
responseRecord := CreateRequest("GET", url, token, nil)
|
responseRecord := CreateRequest("GET", url, token, nil)
|
||||||
suite.Require().Equal(http.StatusNotFound, responseRecord.Code)
|
suite.Require().Equal(http.StatusUnprocessableEntity, responseRecord.Code)
|
||||||
})
|
})
|
||||||
|
|
||||||
suite.Run("Failure_Unauthorized", func() {
|
suite.Run("Failure_Unauthorized", func() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue