12 lines
376 B
JavaScript
12 lines
376 B
JavaScript
const expect = require('expect');
|
|
const isNil = require('./isNil.js');
|
|
|
|
test('Testing isNil', () => {
|
|
//For more information on all the methods supported by tape
|
|
//Please go to https://github.com/substack/tape
|
|
expect(typeof isNil === 'function').toBeTruthy();
|
|
expect(isNil(null)).toBe(true);
|
|
expect(isNil(undefined)).toBe(true);
|
|
expect(isNil('')).toBe(false);
|
|
});
|