Fixed test case for phantomjs; non-ES3 token.
This commit is contained in:
parent
7b5ce86c5b
commit
cb68403387
@ -119,7 +119,7 @@ describe('Test Unit Conversion', function () {
|
||||
|
||||
if (test[name + '_format']) {
|
||||
it (('formats ' + wei.toString() + ' ' + name + ' (options: ' + JSON.stringify(formatting) + ')'), function() {
|
||||
let v = ethers.utils.formatUnits(wei, unitName);
|
||||
var v = ethers.utils.formatUnits(wei, unitName);
|
||||
if (formatting.commify) { v = ethers.utils.commify(v); }
|
||||
assert.equal(v, test[name + '_format'],
|
||||
('formats ' + name + ' - ' + test.name));
|
||||
|
Loading…
Reference in New Issue
Block a user