Skip to content

Commit

Permalink
plotly#189 updating preexisting test cases so that order itself is ch…
Browse files Browse the repository at this point in the history
…ecked; no assumption about trace order (unlike my first cut of the test cases)
  • Loading branch information
monfera committed Apr 7, 2016
1 parent 2f939af commit ce35e8b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/jasmine/tests/calcdata_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ describe('calculated data and points', function() {
categorymode: 'category ascending'
}});

expect(gd.calcdata[0][0].y).toEqual(11);
expect(gd.calcdata[0][1].y).toEqual(13);
expect(gd.calcdata[0][2].y).toEqual(15);
expect(gd.calcdata[0][3].y).toEqual(14);
expect(gd.calcdata[0][4].y).toEqual(12);
expect(gd.calcdata[0][0]).toEqual(jasmine.objectContaining({x: 2, y: 15}));
expect(gd.calcdata[0][1]).toEqual(jasmine.objectContaining({x: 0, y: 11}));
expect(gd.calcdata[0][2]).toEqual(jasmine.objectContaining({x: 4, y: 12}));
expect(gd.calcdata[0][3]).toEqual(jasmine.objectContaining({x: 1, y: 13}));
expect(gd.calcdata[0][4]).toEqual(jasmine.objectContaining({x: 3, y: 14}));
});

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

0 comments on commit ce35e8b

Please sign in to comment.