mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
9 lines
219 B
TypeScript
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]);
|
|
});
|
|
});
|