Skip to content

Commit ccf70fb

Browse files
committed
fixup splom and scattergl jasmine tests
1 parent d554594 commit ccf70fb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/jasmine/tests/scattergl_test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,9 @@ describe('end-to-end scattergl tests', function() {
400400
var opts = gd.calcdata[0][0].t._scene.markerOptions[0];
401401

402402
expect(opts.colors).toBeCloseTo2DArray([
403-
[0.5, 0.5, 0.5, 1],
404-
[0.75, 0.25, 0.25, 1],
405-
[1, 0, 0, 1]
403+
[0.5, 0.5, 0.5],
404+
[0.75, 0.25, 0.25],
405+
[1, 0, 0]
406406
]);
407407

408408
expect(opts.positions)

test/jasmine/tests/splom_test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1283,11 +1283,11 @@ describe('Test splom update switchboard:', function() {
12831283
]);
12841284

12851285
expect(toPlainArray(scene.matrixOptions.colors[0]))
1286-
.toBeCloseToArray([0.890, 0.6, 0.4078, 1], 1, msg + '- 0');
1286+
.toBeCloseToArray([0.890, 0.6, 0.4078], 1, msg + '- 0');
12871287
expect(toPlainArray(scene.matrixOptions.colors[1]))
1288-
.toBeCloseToArray([0.81176, 0.3333, 0.2431, 1], 1, msg + '- 1');
1288+
.toBeCloseToArray([0.81176, 0.3333, 0.2431], 1, msg + '- 1');
12891289
expect(toPlainArray(scene.matrixOptions.colors[2]))
1290-
.toBeCloseToArray([0.6980, 0.0392, 0.1098, 1], 1, msg + '- 2');
1290+
.toBeCloseToArray([0.6980, 0.0392, 0.1098], 1, msg + '- 2');
12911291

12921292
return Plotly.restyle(gd, 'marker.size', 20);
12931293
})

0 commit comments

Comments
 (0)