mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-10 13:55:45 +00:00
563ba154a3
Previous to this PR, `web3` was only made available to each test case, as it was put in to the global namespace after each test deploy. This was causing issues for tests that use `web3` in the test description (ie in `describe()` or `contract()` functions), as the deploy had not happened yet, and thus `web3` was not yet available. The error encountered in these cases was `web3 is not defined`. This PR puts `web3` in the global namespace before setting up the tests, making it available to test descriptions.