ethers.js/tests/utils-ethers-browser.js
2018-07-23 03:02:39 -04:00

12 lines
333 B
JavaScript

var assert = require('assert');
function getEthers(filename) {
var ethers = global.ethers
if (!ethers) { return undefined; }
console.log('Using global ethers; ' + filename);
assert.equal(ethers.platform, 'browser', 'platform: ' + ethers.platform + ' != "brwoser"');
return ethers;
}
module.exports = getEthers;