Open arturictus opened 1 year ago
Here is an example of how I create helpers to test https://github.com/closerdao/proof-of-presence/blob/99d298b5d8e5b328b02bcc38eacd5885435ac035/test/utils/diamond/adminHelpers.ts#L9-L117
Here are the tests using those helpers: https://github.com/closerdao/proof-of-presence/blob/99d298b5d8e5b328b02bcc38eacd5885435ac035/test/diamond/MembershipFacet.test.ts#L24
The missing tests are here: https://github.com/closerdao/proof-of-presence/blob/99d298b5d8e5b328b02bcc38eacd5885435ac035/test/DynamicSale.test.ts#L62
We should make sure that reverts are triggered for the right reasons and the protect efficiently a right full buy