From b5e3323a936026a530cc563d2bd3928ebe37fa8a Mon Sep 17 00:00:00 2001 From: Alexander Sage Date: Tue, 23 Jul 2019 21:33:03 -0700 Subject: [PATCH] fix: workaround for function 25 line limit --- __mocks__/d3.js | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/__mocks__/d3.js b/__mocks__/d3.js index 73e5482bd..caee810ad 100644 --- a/__mocks__/d3.js +++ b/__mocks__/d3.js @@ -1,21 +1,16 @@ /* eslint-env jest */ let NewD3 = function () { + function returnThis () { + return this + } return { append: function () { return NewD3() }, - lower: function () { - return this - }, - attr: function () { - return this - }, - style: function () { - return this - }, - text: function () { - return this - }, + lower: returnThis, + attr: returnThis, + style: returnThis, + text: returnThis, 0: { 0: { getBBox: function () {