near / near-workspaces-js

Write tests once, run them both on NEAR TestNet and a controlled NEAR Sandbox local environment
https://near.github.io/near-workspaces-js/
GNU General Public License v3.0
42 stars 22 forks source link

Update __tests__ Example to use init helpers in beforeEach function #169

Open idea404 opened 2 years ago

idea404 commented 2 years ago

As mentioned in this PR's review comment by Serhii: https://github.com/near-examples/FT/pull/110, test cases for the DeFi example use a helper function called for every test case. Instead, the beforeEach method could include this sequence and simplify the code.