Test cleanup and fixes [i-l]
This commit is contained in:
@ -1,11 +1,9 @@
|
||||
const expect = require('expect');
|
||||
const isPrime = require('./isPrime.js');
|
||||
|
||||
|
||||
test('isPrime is a Function', () => {
|
||||
test('isPrime is a Function', () => {
|
||||
expect(isPrime).toBeInstanceOf(Function);
|
||||
});
|
||||
test('passed number is a prime', () => {
|
||||
expect(isPrime(11)).toBe(true)
|
||||
test('passed number is a prime', () => {
|
||||
expect(isPrime(11)).toBeTruthy();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user