From e39cd849236bf33f32168cfaaab0faf64e0ba69d Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Sat, 13 Oct 2018 17:27:19 -0400 Subject: [PATCH] Fixed test cases for phantomjs (must use ES3 syntax). --- tests/test-contract-interface.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test-contract-interface.js b/tests/test-contract-interface.js index 1b05594cd..9abb6c4d1 100644 --- a/tests/test-contract-interface.js +++ b/tests/test-contract-interface.js @@ -446,9 +446,9 @@ describe('Test Filters', function() { // @TODO: Add a LOT more tests here function doTest(test) { it(test.name, function() { - let iface = new ethers.utils.Interface([ test.signature ]); - let eventDescription = iface.events[test.event]; - let filter = eventDescription.encodeTopics(test.args); + var iface = new ethers.utils.Interface([ test.signature ]); + var eventDescription = iface.events[test.event]; + var filter = eventDescription.encodeTopics(test.args); assert.equal(filter.length, test.expected.length, 'filter length matches - ' + test.name); filter.forEach(function(expected, index) { assert.equal(expected, test.expected[index], 'signature topic matches - ' + index + ' - ' + test.name); @@ -506,7 +506,7 @@ describe('Test Filters', function() { } ]; - Tests.forEach((test) => { + Tests.forEach(function(test) { doTest(test); }); });