mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-20 18:43:43 +08:00
17 lines
541 B
JavaScript
17 lines
541 B
JavaScript
import { calculateSumOfPrimeNumbers } from '../Problem010'
|
|
|
|
describe('checkAnagram', () => {
|
|
it('Return the sum of prime numbers upto but less than 14', () => {
|
|
const SUT = calculateSumOfPrimeNumbers(14)
|
|
expect(SUT).toBe(41)
|
|
})
|
|
it('Return the sum of prime numbers upto but less than 10', () => {
|
|
const SUT = calculateSumOfPrimeNumbers(10)
|
|
expect(SUT).toBe(17)
|
|
})
|
|
it('Return the sum of prime numbers upto but less than 100', () => {
|
|
const SUT = calculateSumOfPrimeNumbers(100)
|
|
expect(SUT).toBe(1060)
|
|
})
|
|
})
|