Test cleanup and fixes [o-p]
This commit is contained in:
@ -1,11 +1,9 @@
|
||||
const expect = require('expect');
|
||||
const primes = require('./primes.js');
|
||||
|
||||
|
||||
test('primes is a Function', () => {
|
||||
test('primes is a Function', () => {
|
||||
expect(primes).toBeInstanceOf(Function);
|
||||
});
|
||||
test('Generates primes up to a given number, using the Sieve of Eratosthenes.', () => {
|
||||
expect(primes(10), [2, 3, 5).toEqual(7])
|
||||
test('Generates primes up to a given number, using the Sieve of Eratosthenes.', () => {
|
||||
expect(primes(10)).toEqual([2, 3, 5, 7]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user