-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Context
Currently chai is directly imported on each test file, where it is then attached to the ethereum-waffle's solidity chai matcher (i.e.: here). Furthermore, there are occurrences where it uses different assertion styles (i.e.: here and here).
TODO
- Create a global chai setup in its own separate file
- Replace
ethereum-wafflewithchai-ethers: theethereum-wafflelibrary is much broader in its scope than chai-ethers which, similarly to ethereum-waffle's solidity, only provides chai matchers to deal with ethereum testing. Removingethereum-wafflewill prevent potential misuse in the future should anyone use it for anything else other than attaching its matchers to chai. - Enforce a consistent assertion style: since it seems that the most used construct is
expect, we should remove all the occurrences ofassert - add expectThrow and expectFail as custom assertions in the custom chai setup
Related to #566
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels