Skip to content

Commit

Permalink
fix: workaround for function 25 line limit
Browse files Browse the repository at this point in the history
  • Loading branch information
sagea committed Jul 24, 2019
1 parent 8f6d148 commit b5e3323
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions __mocks__/d3.js
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down

0 comments on commit b5e3323

Please sign in to comment.