factors.test.ts 219 B

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