mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-04 07:29:47 +08:00

* Added LucasSeries * Added more tests and renamed function * Changed RangeError to TypeError * Added Aliquot Sum and tests * Fix ALiquot tests, need to learn how to use Jest * Added some explanation for the Aliquot sum
16 lines
312 B
JavaScript
16 lines
312 B
JavaScript
import { aliquotSum } from '../AliquotSum'
|
|
|
|
describe('Aliquot Sum of a Number', () => {
|
|
it('Aliquot Sum of 6', () => {
|
|
expect(aliquotSum(6)).toBe(6)
|
|
})
|
|
|
|
it('Aliquot Sum of 1', () => {
|
|
expect(aliquotSum(1)).toBe(0)
|
|
})
|
|
|
|
it('Aliquot Sum of 28', () => {
|
|
expect(aliquotSum(28)).toBe(28)
|
|
})
|
|
})
|