Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
2
test/isUndefined/isUndefined.js
Normal file
2
test/isUndefined/isUndefined.js
Normal file
@ -0,0 +1,2 @@
|
||||
const isUndefined = val => val === undefined;
|
||||
module.exports = isUndefined;
|
||||
12
test/isUndefined/isUndefined.test.js
Normal file
12
test/isUndefined/isUndefined.test.js
Normal file
@ -0,0 +1,12 @@
|
||||
const expect = require('expect');
|
||||
const isUndefined = require('./isUndefined.js');
|
||||
|
||||
|
||||
test('isUndefined is a Function', () => {
|
||||
expect(isUndefined).toBeInstanceOf(Function);
|
||||
});
|
||||
test('Returns true for undefined', () => {
|
||||
expect(isUndefined(undefined)).toBeTruthy();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user