Test cleanup and fixes [a-b]

This commit is contained in:
Angelos Chalaris
2018-06-18 15:54:48 +03:00
parent a78f5db260
commit 026c65a5e6
151 changed files with 753 additions and 373 deletions

View File

@ -5,8 +5,14 @@ const isNil = require('./isNil.js');
test('isNil is a Function', () => {
expect(isNil).toBeInstanceOf(Function);
});
t.equal(isNil(null), true, 'Returns true for null');
t.equal(isNil(undefined), true, 'Returns true for undefined');
t.equal(isNil(''), false, 'Returns false for an empty string');
test('Returns true for null', () => {
expect(isNil(null), true).toBe()
});
test('Returns true for undefined', () => {
expect(isNil(undefined), true).toBe()
});
test('Returns false for an empty string', () => {
expect(isNil(''), false).toBe()
});