Skip to content

Commit f4324d1

Browse files
committed
Fix test about curve
1 parent f1d2808 commit f4324d1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

__mocks__/d3.js

+4
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ export const select = function () {
3232
export const selectAll = function () {
3333
return new NewD3()
3434
}
35+
36+
export const curveBasis = 'basis'
37+
export const curveLinear = 'linear'
38+
export const curveCardinal = 'cardinal'

src/mermaid.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ describe('when using mermaid and ', function () {
118118
expect(start).toBe('A')
119119
expect(end).toBe('B')
120120
expect(options.arrowhead).toBe('none')
121-
expect(options.lineInterpolate).toBe('basis')
121+
expect(options.curve).toBe('basis') // mocked as string
122122
}
123123
}
124124

0 commit comments

Comments
 (0)