Skip to content

Commit

Permalink
plotly#189 updating preexisting test cases: further updates to proper…
Browse files Browse the repository at this point in the history
… axis order checking
  • Loading branch information
monfera committed Apr 7, 2016
1 parent ce35e8b commit 262c747
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/jasmine/tests/calcdata_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,18 @@ describe('calculated data and points', function() {
expect(gd.calcdata[0][4]).toEqual(jasmine.objectContaining({x: 3, y: 14}));
});

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

Plotly.plot(gd, [{x: ['c','a','e','b','d'], y: [15,11,12,13,14]}], { xaxis: {
type: 'category',
categorymode: 'category descending'
}});

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

it('should output categories in categorymode order even if category array is defined', function() {
Expand Down

0 comments on commit 262c747

Please sign in to comment.