feat(edge): add curve to edge test props
Signed-off-by: andrmaz <60042277+andrmaz@users.noreply.github.com>
This commit is contained in:
@@ -17,10 +17,11 @@
|
||||
import React from 'react';
|
||||
import { render } from '@testing-library/react';
|
||||
import { Edge } from './Edge';
|
||||
import { RenderLabelProps } from './types';
|
||||
import { Curve, RenderLabelProps } from './types';
|
||||
|
||||
const fromNode = 'node';
|
||||
const toNode = 'other-node';
|
||||
const curve: Curve = 'curveMonotoneX';
|
||||
|
||||
const edge = {
|
||||
points: [
|
||||
@@ -46,6 +47,7 @@ const minProps = {
|
||||
setEdge,
|
||||
renderElement,
|
||||
edge,
|
||||
curve,
|
||||
};
|
||||
|
||||
const label = 'label';
|
||||
|
||||
Reference in New Issue
Block a user