Skip to content

Commit 262c747

Browse files
committed
plotly#189 updating preexisting test cases: further updates to proper axis order checking
1 parent ce35e8b commit 262c747

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/jasmine/tests/calcdata_test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,18 @@ describe('calculated data and points', function() {
8282
expect(gd.calcdata[0][4]).toEqual(jasmine.objectContaining({x: 3, y: 14}));
8383
});
8484

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

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

92-
expect(gd.calcdata[0][0].y).toEqual(12);
93-
expect(gd.calcdata[0][1].y).toEqual(14);
94-
expect(gd.calcdata[0][2].y).toEqual(15);
95-
expect(gd.calcdata[0][3].y).toEqual(13);
96-
expect(gd.calcdata[0][4].y).toEqual(11);
92+
expect(gd.calcdata[0][0]).toEqual(jasmine.objectContaining({x: 2, y: 15}));
93+
expect(gd.calcdata[0][1]).toEqual(jasmine.objectContaining({x: 4, y: 11}));
94+
expect(gd.calcdata[0][2]).toEqual(jasmine.objectContaining({x: 0, y: 12}));
95+
expect(gd.calcdata[0][3]).toEqual(jasmine.objectContaining({x: 3, y: 13}));
96+
expect(gd.calcdata[0][4]).toEqual(jasmine.objectContaining({x: 1, y: 14}));
9797
});
9898

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

0 commit comments

Comments
 (0)