10 lines
338 B
JavaScript
10 lines
338 B
JavaScript
const expect = require('expect');
|
|
const isEven = require('./isEven.js');
|
|
|
|
test('Testing isEven', () => {
|
|
//For more information on all the methods supported by tape
|
|
//Please go to https://github.com/substack/tape
|
|
expect(typeof isEven === 'function').toBeTruthy();
|
|
expect(isEven(4)).toBe(true);
|
|
expect(isEven(5)).toBeFalsy();
|
|
}); |