From f4324d1de608344e8a62779d268f7dbe8ff0d6dc Mon Sep 17 00:00:00 2001 From: Tyler Long Date: Sat, 17 Mar 2018 23:19:13 +0800 Subject: [PATCH] Fix test about curve --- __mocks__/d3.js | 4 ++++ src/mermaid.spec.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/__mocks__/d3.js b/__mocks__/d3.js index 365363775..218ed9754 100644 --- a/__mocks__/d3.js +++ b/__mocks__/d3.js @@ -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' diff --git a/src/mermaid.spec.js b/src/mermaid.spec.js index 9916b2071..996ad21f5 100644 --- a/src/mermaid.spec.js +++ b/src/mermaid.spec.js @@ -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 } }