mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-23 18:26:39 +02:00
fix: workaround for function 25 line limit
This commit is contained in:
19
__mocks__/d3.js
vendored
19
__mocks__/d3.js
vendored
@@ -1,21 +1,16 @@
|
|||||||
/* eslint-env jest */
|
/* eslint-env jest */
|
||||||
let NewD3 = function () {
|
let NewD3 = function () {
|
||||||
|
function returnThis () {
|
||||||
|
return this
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
append: function () {
|
append: function () {
|
||||||
return NewD3()
|
return NewD3()
|
||||||
},
|
},
|
||||||
lower: function () {
|
lower: returnThis,
|
||||||
return this
|
attr: returnThis,
|
||||||
},
|
style: returnThis,
|
||||||
attr: function () {
|
text: returnThis,
|
||||||
return this
|
|
||||||
},
|
|
||||||
style: function () {
|
|
||||||
return this
|
|
||||||
},
|
|
||||||
text: function () {
|
|
||||||
return this
|
|
||||||
},
|
|
||||||
0: {
|
0: {
|
||||||
0: {
|
0: {
|
||||||
getBBox: function () {
|
getBBox: function () {
|
||||||
|
Reference in New Issue
Block a user