INFRA-2911 | updated unit test (#377)

This commit is contained in:
Shashank Shekhar
2024-02-20 14:18:10 +05:30
committed by GitHub
parent c147de3a0c
commit 99c79a6484

View File

@@ -79,6 +79,7 @@ func (suite *ProductServiceSuite) TestProductServiceImpl_GetProductByID() {
}
func (suite *ProductServiceSuite) TestProductServiceImpl_DeleteProductByID() {
suite.repoMock.GetProductByIdMock.When(uint(1)).Then(&repo.ProductEntity{}, nil)
suite.repoMock.DeleteProductByIDMock.When(uint(1)).Then(nil)
err := suite.service.DeleteProductByID(1)