Skip to content

Commit 7f808d8

Browse files
committed
fix: 修复 violin 单测错误
1 parent 6708db4 commit 7f808d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

__tests__/unit/plots/violin/legend-spec.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ describe('violin legend', () => {
136136

137137
violin.update({ legend: { position: 'left', marker: { style: { fill: 'red' } } } });
138138
// @ts-ignore
139-
expect(violin.chart.options.legends[X_FIELD]).toEqual({ position: 'left', marker: { style: { fill: 'red' } } });
139+
expect(violin.chart.options.legends[X_FIELD]).toMatchObject({
140+
position: 'left',
141+
marker: { style: { fill: 'red' } },
142+
});
140143
});
141144
});

0 commit comments

Comments
 (0)