Skip to content

Commit 43c69b7

Browse files
committed
Tests fix
1 parent f9130c5 commit 43c69b7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/components/fields/__tests__/AnnotationRef-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('<AnnotationRef>', () => {
2828
expect(options.length).toBe(3);
2929
expect(options[0]).toEqual({label: 'Canvas', value: 'paper'});
3030
expect(options[1]).toEqual({label: 'Y', value: 'y'});
31-
expect(options[2]).toEqual({label: 'yaxis2 title', value: 'y2'});
31+
expect(options[2]).toEqual({label: 'Y Axis: yaxis2 title', value: 'y2'});
3232
});
3333

3434
it('sends update for a[x|y]ref attr on [x|y]ref change', () => {
@@ -115,6 +115,6 @@ describe('<AnnotationArrowRef>', () => {
115115
expect(options.length).toBe(3);
116116
expect(options[0]).toEqual({label: 'in pixels', value: 'pixel'});
117117
expect(options[1]).toEqual({label: 'Y', value: 'y'});
118-
expect(options[2]).toEqual({label: 'yaxis2 title', value: 'y2'});
118+
expect(options[2]).toEqual({label: 'Y Axis: yaxis2 title', value: 'y2'});
119119
});
120120
});

src/shame.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
import {getFromId} from 'plotly.js/src/plots/cartesian/axis_ids';
55
import nestedProperty from 'plotly.js/src/lib/nested_property';
66

7-
8-
97
// Temporary fix for:
108
// https://github.com/plotly/react-plotly.js-editor/issues/103
119
// We should be able to remove this once the plotly.react method has

0 commit comments

Comments
 (0)