Fix test about curve

This commit is contained in:
Tyler Long
2018-03-17 23:19:13 +08:00
parent f1d2808594
commit f4324d1de6
2 changed files with 5 additions and 1 deletions

4
__mocks__/d3.js vendored
View File

@@ -32,3 +32,7 @@ export const select = function () {
export const selectAll = function () {
return new NewD3()
}
export const curveBasis = 'basis'
export const curveLinear = 'linear'
export const curveCardinal = 'cardinal'

View File

@@ -118,7 +118,7 @@ describe('when using mermaid and ', function () {
expect(start).toBe('A')
expect(end).toBe('B')
expect(options.arrowhead).toBe('none')
expect(options.lineInterpolate).toBe('basis')
expect(options.curve).toBe('basis') // mocked as string
}
}