We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd89e81 commit 2df5be4Copy full SHA for 2df5be4
src/lib/__tests__/connectLayoutToPlot-test.js
@@ -53,19 +53,19 @@ Layouts.forEach((Layout) => {
53
it(`automatically computes min and max defaults`, () => {
54
const onUpdate = jest.fn();
55
const wrapper = mount(
56
- <Editor onUpdate={onUpdate} {...fixtures.scatter({layout: {showlegend: true}})}>
+ <Editor onUpdate={onUpdate} {...fixtures.scatter()}>
57
<PlotlyPanel>
58
<Layout>
59
- <Numeric label="Position x" step={0.01} attr="legend.x" />
+ <Numeric label="Position x" step={0.01} attr="title.x" />
60
</Layout>
61
</PlotlyPanel>
62
</Editor>
63
)
64
- .find('[attr="legend.x"]')
+ .find('[attr="title.x"]')
65
.find(NumericInput);
66
67
- const expectedMin = -2;
68
- const expectedMax = 3;
+ const expectedMin = 0;
+ const expectedMax = 1;
69
expect(wrapper.prop('min')).toBe(expectedMin);
70
expect(wrapper.prop('max')).toBe(expectedMax);
71
});
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments