grafana/public/app/core/specs/factors.test.ts
2019-01-09 11:17:48 +01:00

9 lines
219 B
TypeScript

import getFactors from 'app/core/utils/factors';
describe('factors', () => {
it('should return factors for 12', () => {
const factors = getFactors(12);
expect(factors).toEqual([1, 2, 3, 4, 6, 12]);
});
});