Test cleanup and fixes [a-b]
This commit is contained in:
@ -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()
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user