Skip to content

Instantly share code, notes, and snippets.

@michaelsbradleyjr
Created January 21, 2020 17:02
Show Gist options
  • Save michaelsbradleyjr/75822ae3cfe970b6dbabd0ed77610dd0 to your computer and use it in GitHub Desktop.
Save michaelsbradleyjr/75822ae3cfe970b6dbabd0ed77610dd0 to your computer and use it in GitHub Desktop.
File: packages/plugins/mocha-tests/src/lib/index.js
58:7: global.before((done) => {
87:15: global.web3.eth.defaultAccount = accts[0];
220:17: global.describe = describeWithAccounts;
221:17: global.contract = describeWithAccounts;
222:17: global.config = config;
File: packages/embarkjs/ens/src/index.js
3:16:let EmbarkJS = global.EmbarkJS || require('embarkjs');
File: packages/embarkjs/embarkjs/src/test/helpers/blockchain.js
58:15: this.web3 = global.web3 || new Web3();
59:3: global.web3 = global.web3 || this.web3;
File: packages/embarkjs/embarkjs/src/lib/utils.js
3:14:const Web3 = global.Web3 || require('web3');
File: packages/embarkjs/web3/src/index.js
7:3: global.web3 = config.web3 || global.web3;
9:7: if (global.web3 && typeof global.web3.version !== 'string') {
11:26: this.web3 = new Web3(global.web3.currentProvider);
13:17: this.web3 = global.web3 || new Web3();
15:3: global.web3 = this.web3;
File: packages/stack/test-runner/src/lib/index.js
180:5: global.getEvmVersion = async () => {
184:5: global.assert = assert;
185:5: global.embark = this.embark;
187:5: global.increaseTime = async (amount) => {
188:32: const evmVersion = await global.getEvmVersion();
191:36: this.logger.warn('WARNING: global.increaseTime uses RPC APIs that are only provided by a simulator (Ganache) and might cause a timeout');
199:5: global.mineAtTimestamp = async (timestamp) => {
200:32: const evmVersion = await global.getEvmVersion();
202:36: this.logger.warn('WARNING: global.mineAtTimestamp uses RPC APIs that are only provided by a simulator (Ganache) and might cause a timeout');
26 matches
6 files contained matches
1257 files searched
4347240 bytes searched
0.063218 seconds
Ag finished at Tue Jan 21 11:00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment