Fixed unit test.

This commit is contained in:
ilgizar
2018-03-20 16:09:52 +05:00
parent 341afe65ef
commit e015047ed1

View File

@@ -200,11 +200,10 @@ describe('Graph Y axes aligner', function() {
describe('on level not number value', () => {
it('Should ignore without errors', () => {
alignY = 'q';
yaxes = [{ min: 5, max: 10 }, { min: 2, max: 4 }];
expected = [{ min: 5, max: 10 }, { min: 2, max: 4 }];
alignYLevel(yaxes, alignY);
alignYLevel(yaxes, 'q');
expect(yaxes).toMatchObject(expected);
});
});