Skip to content

Commit bed63c1

Browse files
committed
lint
1 parent a2dd634 commit bed63c1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/jasmine/tests/annotations_test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,17 @@ describe('annotations relayout', function() {
7070
Plotly.relayout(gd, 'annotations[' + len + ']', ann).then(function() {
7171
expect(countAnnotations()).toEqual(len + 1);
7272

73-
return Plotly.relayout(gd, 'annotations[' + 0 + ']', 'remove');
73+
return Plotly.relayout(gd, 'annotations[0]', 'remove');
7474
})
7575
.then(function() {
7676
expect(countAnnotations()).toEqual(len);
7777

78-
return Plotly.relayout(gd, 'annotations[' + 0 + ']', null);
78+
return Plotly.relayout(gd, 'annotations[0]', null);
7979
})
8080
.then(function() {
8181
expect(countAnnotations()).toEqual(len - 1);
8282

83-
return Plotly.relayout(gd, 'annotations[' + 0 + '].visible', false);
83+
return Plotly.relayout(gd, 'annotations[0].visible', false);
8484
})
8585
.then(function() {
8686
expect(countAnnotations()).toEqual(len - 2);

test/jasmine/tests/shapes_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,13 @@ describe('Test shapes:', function() {
190190
expect(countShapePathsInUpperLayer()).toEqual(pathCount);
191191
expect(countShapes(gd)).toEqual(index);
192192

193-
return Plotly.relayout(gd, 'shapes[' + 2 + '].visible', false);
193+
return Plotly.relayout(gd, 'shapes[2].visible', false);
194194
})
195195
.then(function() {
196196
expect(countShapePathsInUpperLayer()).toEqual(pathCount - 1);
197197
expect(countShapes(gd)).toEqual(index);
198198

199-
return Plotly.relayout(gd, 'shapes[' + 1 + ']', null);
199+
return Plotly.relayout(gd, 'shapes[1]', null);
200200
})
201201
.then(function() {
202202
expect(countShapePathsInUpperLayer()).toEqual(pathCount - 2);

0 commit comments

Comments
 (0)