Fixed test case for phantomjs; non-ES3 token.

This commit is contained in:
Richard Moore 2018-09-26 16:29:16 -04:00
parent 7b5ce86c5b
commit cb68403387
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

View File

@ -119,7 +119,7 @@ describe('Test Unit Conversion', function () {
if (test[name + '_format']) { if (test[name + '_format']) {
it (('formats ' + wei.toString() + ' ' + name + ' (options: ' + JSON.stringify(formatting) + ')'), function() { 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); } if (formatting.commify) { v = ethers.utils.commify(v); }
assert.equal(v, test[name + '_format'], assert.equal(v, test[name + '_format'],
('formats ' + name + ' - ' + test.name)); ('formats ' + name + ' - ' + test.name));