bisakhmondal commented on pull request #1583:
URL: https://github.com/apache/apisix-dashboard/pull/1583#issuecomment-799597937


   >Could you share us the benefits of using this lib? 
   
   Hi, @nic-chen, thanks for being interested. The gomega is just a bit fancier 
assertion tool developed by the same guy "onsi" who developed ginkgo. The extra 
benefit is that assertions are more BDD style.  It provides a lot of cool 
matchers to make the tests more readable.
   for eg: (I used here a few)
   ```go
   gomega.Expect(err).To(gomega.BeNil())
   gomega.Expect(status).To(gomega.Equal(http.StatusOK))
   gomega.Expect(list).Should(gomega.HaveLen(3))
   ```
   etc.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to