You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
219 B
8 lines
219 B
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]);
|
|
});
|
|
});
|
|
|