From b389522477b73780e8334680cb127ab08304fcf3 Mon Sep 17 00:00:00 2001 From: Omkara <0mkar@protonmail.com> Date: Mon, 25 Feb 2019 20:08:34 +0530 Subject: [PATCH] replace var with const in tests --- remix-tests/tests/testRunner.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/remix-tests/tests/testRunner.ts b/remix-tests/tests/testRunner.ts index 65e8488cf8..094c4632f8 100644 --- a/remix-tests/tests/testRunner.ts +++ b/remix-tests/tests/testRunner.ts @@ -45,11 +45,11 @@ describe('testRunner', () => { before((done) => { compileAndDeploy(filename, (_err: Error | null | undefined, compilationData: object, contracts: any, accounts: object) => { - var testCallback: TestCbInterface = (err, test) => { + const testCallback: TestCbInterface = (err, test) => { if (err) { throw err } tests.push(test) } - var resultsCallback: ResultCbInterface = (err, _results) => { + const resultsCallback: ResultCbInterface = (err, _results) => { if (err) { throw err } results = _results done() @@ -83,11 +83,11 @@ describe('testRunner', () => { before(function (done) { compileAndDeploy(filename, function (_err: Error | null | undefined, compilationData: object, contracts: any, accounts: object) { - var testCallback: TestCbInterface = (err, test) => { + const testCallback: TestCbInterface = (err, test) => { if (err) { throw err } tests.push(test) } - var resultsCallback: ResultCbInterface = (err, _results) => { + const resultsCallback: ResultCbInterface = (err, _results) => { if (err) { throw err } results = _results done() @@ -120,11 +120,11 @@ describe('testRunner', () => { before(function (done) { compileAndDeploy(filename, (_err, compilationData, contracts, accounts) => { - var testCallback: TestCbInterface = (err, test) => { + const testCallback: TestCbInterface = (err, test) => { if (err) { throw err } tests.push(test) } - var resultsCallback: ResultCbInterface = (err, _results) => { + const resultsCallback: ResultCbInterface = (err, _results) => { if (err) { throw err } results = _results done() @@ -159,11 +159,11 @@ describe('testRunner', () => { before(function (done) { compileAndDeploy(filename, (_err, compilationData, contracts, accounts) => { - var testCallback: TestCbInterface = (err, test) => { + const testCallback: TestCbInterface = (err, test) => { if (err) { throw err } tests.push(test) } - var resultsCallback: ResultCbInterface = (err, _results) => { + const resultsCallback: ResultCbInterface = (err, _results) => { if (err) { throw err } results = _results done() @@ -187,11 +187,11 @@ describe('testRunner', () => { before(function (done) { compileAndDeploy(filename, (_err, compilationData, contracts, accounts) => { - var testCallback: TestCbInterface = (err, test) => { + const testCallback: TestCbInterface = (err, test) => { if (err) { throw err } tests.push(test) } - var resultsCallback: ResultCbInterface = (err, _results) => { + const resultsCallback: ResultCbInterface = (err, _results) => { if (err) { throw err } results = _results done()