Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
13
test/isString/isString.test.js
Normal file
13
test/isString/isString.test.js
Normal file
@ -0,0 +1,13 @@
|
||||
const expect = require('expect');
|
||||
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');
|
||||
|
||||
Reference in New Issue
Block a user