From bfefb2403c427df33f340dca3187ba642bee1443 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sun, 2 Dec 2018 10:31:50 -0800 Subject: [PATCH] chore: update eslint-plugin-jest --- web3.js/package-lock.json | 6 +++--- web3.js/package.json | 2 +- web3.js/src/transaction.js | 12 +++++------- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/web3.js/package-lock.json b/web3.js/package-lock.json index eb6a968fa4..00ad897972 100644 --- a/web3.js/package-lock.json +++ b/web3.js/package-lock.json @@ -4690,9 +4690,9 @@ } }, "eslint-plugin-jest": { - "version": "22.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-22.0.1.tgz", - "integrity": "sha512-thHQBWZefGO0yhjj8QA1iZ7V9S9LVk6nBK9s8B52Mg//Ly9OppFSGrrIruJ3hzgLpsLx6iIP/8/a8CfI8ESvRA==", + "version": "22.1.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-22.1.0.tgz", + "integrity": "sha512-WcQd5LxEoAS20zuWEAd8CX0pVC+gGInZPcsoYvK5w7BrEJNmltyTxYYh1r0ct4GsahD2GvNySlcTcLtK2amFZA==", "dev": true }, "eslint-plugin-prettier": { diff --git a/web3.js/package.json b/web3.js/package.json index b5d951d458..4011ed6a51 100644 --- a/web3.js/package.json +++ b/web3.js/package.json @@ -99,7 +99,7 @@ "eslint": "5.9.0", "eslint-config-prettier": "^3.1.0", "eslint-plugin-import": "2.14.0", - "eslint-plugin-jest": "22.0.1", + "eslint-plugin-jest": "22.1.0", "eslint-plugin-prettier": "^3.0.0", "flow-bin": "0.87.0", "flow-typed": "2.5.1", diff --git a/web3.js/src/transaction.js b/web3.js/src/transaction.js index 9ac3353794..876fd7ca4a 100644 --- a/web3.js/src/transaction.js +++ b/web3.js/src/transaction.js @@ -168,13 +168,11 @@ export class Transaction { programIds.push(programId); } - instruction.keys - .map(key => key.toString()) - .forEach(key => { - if (!keys.includes(key)) { - keys.push(key); - } - }); + instruction.keys.map(key => key.toString()).forEach(key => { + if (!keys.includes(key)) { + keys.push(key); + } + }); }); const instructions = this.instructions.map(instruction => {