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,9 +5,19 @@ const isString = require('./isString.js');
test('isString is a Function', () => {
expect(isString).toBeInstanceOf(Function);
});
t.equal(isString('foo'), true, 'foo is a string');
t.equal(isString('10'), true, '"10" is a string');
t.equal(isString(''), true, 'Empty string is a string');
t.equal(isString(10), false, '10 is not a string');
t.equal(isString(true), false, 'true is not string');
test('foo is a string', () => {
expect(isString('foo'), true).toBe()
});
test('"10" is a string', () => {
expect(isString('10'), true).toBe()
});
test('Empty string is a string', () => {
expect(isString(''), true).toBe()
});
test('10 is not a string', () => {
expect(isString(10), false).toBe()
});
test('true is not string', () => {
expect(isString(true), false).toBe()
});