UNPKG

@figlinq/react-chart-editor

Version:
2 lines 624 B
import ArrowSelector from"../ArrowSelector";import Dropdown from"../Dropdown";import{shallow}from"../../../lib/test-utils";import{jsx as _jsx}from"react/jsx-runtime";describe("<ArrowSelector>",()=>{it("pulls arrow_paths from plotly.js and sets as options",()=>{const minNumberOfArrowsExpected=4;const options=shallow(_jsx(ArrowSelector,{})).find(Dropdown).prop("options");expect(options.length>minNumberOfArrowsExpected).toBe(true);const innerPath=options[3].label.props.children[1];expect(innerPath.type).toBe("path");expect(innerPath.props.d.startsWith("M-")).toBe(true)})}); //# sourceMappingURL=ArrowSelector-test.js.map