mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-18 15:56:43 +02:00
Fix test about curve
This commit is contained in:
4
__mocks__/d3.js
vendored
4
__mocks__/d3.js
vendored
@@ -32,3 +32,7 @@ export const select = function () {
|
|||||||
export const selectAll = function () {
|
export const selectAll = function () {
|
||||||
return new NewD3()
|
return new NewD3()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const curveBasis = 'basis'
|
||||||
|
export const curveLinear = 'linear'
|
||||||
|
export const curveCardinal = 'cardinal'
|
||||||
|
@@ -118,7 +118,7 @@ describe('when using mermaid and ', function () {
|
|||||||
expect(start).toBe('A')
|
expect(start).toBe('A')
|
||||||
expect(end).toBe('B')
|
expect(end).toBe('B')
|
||||||
expect(options.arrowhead).toBe('none')
|
expect(options.arrowhead).toBe('none')
|
||||||
expect(options.lineInterpolate).toBe('basis')
|
expect(options.curve).toBe('basis') // mocked as string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user