Skip to content

Commit ce35e8b

Browse files
committed
plotly#189 updating preexisting test cases so that order itself is checked; no assumption about trace order (unlike my first cut of the test cases)
1 parent 2f939af commit ce35e8b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/jasmine/tests/calcdata_test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ describe('calculated data and points', function() {
7575
categorymode: 'category ascending'
7676
}});
7777

78-
expect(gd.calcdata[0][0].y).toEqual(11);
79-
expect(gd.calcdata[0][1].y).toEqual(13);
80-
expect(gd.calcdata[0][2].y).toEqual(15);
81-
expect(gd.calcdata[0][3].y).toEqual(14);
82-
expect(gd.calcdata[0][4].y).toEqual(12);
78+
expect(gd.calcdata[0][0]).toEqual(jasmine.objectContaining({x: 2, y: 15}));
79+
expect(gd.calcdata[0][1]).toEqual(jasmine.objectContaining({x: 0, y: 11}));
80+
expect(gd.calcdata[0][2]).toEqual(jasmine.objectContaining({x: 4, y: 12}));
81+
expect(gd.calcdata[0][3]).toEqual(jasmine.objectContaining({x: 1, y: 13}));
82+
expect(gd.calcdata[0][4]).toEqual(jasmine.objectContaining({x: 3, y: 14}));
8383
});
8484

8585
it('should output categories in descending domain alphanumerical order', function() {

0 commit comments

Comments
 (0)