Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 927c701

Browse files
committed
add multicategory axis auto-type tests
1 parent 80f4701 commit 927c701

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/jasmine/tests/axes_test.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,20 @@ describe('Test axes', function() {
267267
});
268268
checkTypes('date', 'linear');
269269
});
270+
271+
it('needs one *true* category inner-array to be consider *multicategory*', function() {
272+
supplyWithTrace({
273+
x: [
274+
[2018, 2018, 2017, 2017],
275+
['a', 'b', 'a', 'b']
276+
],
277+
y: [
278+
['a', 'b', 'c'],
279+
['d', 'e', 'f']
280+
]
281+
});
282+
checkTypes('multicategory', 'multicategory');
283+
});
270284
});
271285

272286
it('should set undefined linewidth/linecolor if linewidth, linecolor or showline is not supplied', function() {

0 commit comments

Comments
 (0)