Skip to content

Commit 21650c7

Browse files
committed
ignore cd[i].i in unrelated tests
1 parent ec4d9ee commit 21650c7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/jasmine/tests/scattergeo_test.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ describe('Test scattergeo calc', function() {
8989
Plots.supplyDefaults(gd);
9090

9191
var fullTrace = gd._fullData[0];
92-
return ScatterGeo.calc(gd, fullTrace);
92+
return ScatterGeo.calc(gd, fullTrace).map(function(obj) {
93+
delete obj.i;
94+
return obj;
95+
});
9396
}
9497

9598
it('should place lon/lat data in lonlat pairs', function() {

test/jasmine/tests/scatterternary_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ describe('scatterternary calc', function() {
246246
trace.b = [0.1, 0.3, null];
247247
trace.c = [8, 0.4, 0.1];
248248

249-
cd = calc(gd, trace);
249+
cd = calc(gd, trace).map(function(obj) { delete obj.i; return obj; });
250250

251251
expect(objectToArray(cd[0])).toBeCloseToArray([
252252
0.963414634, 0.012195121, 0.012195121, 0.012195121, 0.975609756

0 commit comments

Comments
 (0)