Updated the test system
This commit is contained in:
9
test/isPrime.test.js
Normal file
9
test/isPrime.test.js
Normal file
@ -0,0 +1,9 @@
|
||||
const expect = require('expect');
|
||||
const {isPrime} = require('./_30s.js');
|
||||
|
||||
test('isPrime is a Function', () => {
|
||||
expect(isPrime).toBeInstanceOf(Function);
|
||||
});
|
||||
test('passed number is a prime', () => {
|
||||
expect(isPrime(11)).toBeTruthy();
|
||||
});
|
||||
Reference in New Issue
Block a user