Test cleanup and fixes [c-d]
This commit is contained in:
@ -5,6 +5,10 @@ const isNull = require('./isNull.js');
|
||||
test('isNull is a Function', () => {
|
||||
expect(isNull).toBeInstanceOf(Function);
|
||||
});
|
||||
t.equal(isNull(null), true, "passed argument is a null");
|
||||
t.equal(isNull(NaN), false, "passed argument is a null");
|
||||
test('passed argument is a null', () => {
|
||||
expect(isNull(null)).toBe(true)
|
||||
});
|
||||
test('passed argument is a null', () => {
|
||||
expect(isNull(NaN)).toBe(false)
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user