Skip to content

Commit

Permalink
Fix test about curve
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlong committed Mar 17, 2018
1 parent f1d2808 commit f4324d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions __mocks__/d3.js
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion src/mermaid.spec.js
Expand Up @@ -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
}
}

Expand Down

0 comments on commit f4324d1

Please sign in to comment.