Skip to content

Commit

Permalink
chore(Line): run prettier on new legend node feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Maen Juganaikloo committed Oct 22, 2024
1 parent c5b78c0 commit 9b5422b
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions packages/line/tests/Line.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,21 +305,28 @@ it('should display a custom legendNode for marker', () => {
],
},
]
const markers = [{
axis: "x",
lineStyle: {
stroke: "lightblue",
strokeWidth: 5
const markers = [
{
axis: 'x',
lineStyle: {
stroke: 'lightblue',
strokeWidth: 5,
},
legendPosition: 'top',
legendNode: (
<foreignObject x={0} y={0} width={32} height={32}>
<div>😎</div>
</foreignObject>
),
},
legendPosition: "top",
legendNode: <foreignObject x={0} y={0} width={32} height={32}><div>😎</div></foreignObject>,
}]
]

const component = renderer.create(<Line width={500} height={300} data={data} animate={false} markers={markers} />)
const component = renderer.create(
<Line width={500} height={300} data={data} animate={false} markers={markers} />
)

let tree = component.toJSON()
expect(tree).toMatchSnapshot()

})

describe('curve interpolation', () => {
Expand Down

0 comments on commit 9b5422b

Please sign in to comment.