File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -70,17 +70,17 @@ describe('annotations relayout', function() {
70
70
Plotly . relayout ( gd , 'annotations[' + len + ']' , ann ) . then ( function ( ) {
71
71
expect ( countAnnotations ( ) ) . toEqual ( len + 1 ) ;
72
72
73
- return Plotly . relayout ( gd , 'annotations[' + 0 + ' ]', 'remove' ) ;
73
+ return Plotly . relayout ( gd , 'annotations[0 ]' , 'remove' ) ;
74
74
} )
75
75
. then ( function ( ) {
76
76
expect ( countAnnotations ( ) ) . toEqual ( len ) ;
77
77
78
- return Plotly . relayout ( gd , 'annotations[' + 0 + ' ]', null ) ;
78
+ return Plotly . relayout ( gd , 'annotations[0 ]' , null ) ;
79
79
} )
80
80
. then ( function ( ) {
81
81
expect ( countAnnotations ( ) ) . toEqual ( len - 1 ) ;
82
82
83
- return Plotly . relayout ( gd , 'annotations[' + 0 + ' ].visible', false ) ;
83
+ return Plotly . relayout ( gd , 'annotations[0 ].visible' , false ) ;
84
84
} )
85
85
. then ( function ( ) {
86
86
expect ( countAnnotations ( ) ) . toEqual ( len - 2 ) ;
Original file line number Diff line number Diff line change @@ -190,13 +190,13 @@ describe('Test shapes:', function() {
190
190
expect ( countShapePathsInUpperLayer ( ) ) . toEqual ( pathCount ) ;
191
191
expect ( countShapes ( gd ) ) . toEqual ( index ) ;
192
192
193
- return Plotly . relayout ( gd , 'shapes[' + 2 + ' ].visible', false ) ;
193
+ return Plotly . relayout ( gd , 'shapes[2 ].visible' , false ) ;
194
194
} )
195
195
. then ( function ( ) {
196
196
expect ( countShapePathsInUpperLayer ( ) ) . toEqual ( pathCount - 1 ) ;
197
197
expect ( countShapes ( gd ) ) . toEqual ( index ) ;
198
198
199
- return Plotly . relayout ( gd , 'shapes[' + 1 + ' ]', null ) ;
199
+ return Plotly . relayout ( gd , 'shapes[1 ]' , null ) ;
200
200
} )
201
201
. then ( function ( ) {
202
202
expect ( countShapePathsInUpperLayer ( ) ) . toEqual ( pathCount - 2 ) ;
You can’t perform that action at this time.
0 commit comments