Test migration to jest by hand
Apparently using regular expressions is way easier.
This commit is contained in:
10
test/unflattenObject/unflattenObject.test.js
Normal file
10
test/unflattenObject/unflattenObject.test.js
Normal file
@ -0,0 +1,10 @@
|
||||
const expect = require('expect');
|
||||
const unflattenObject = require('./unflattenObject.js');
|
||||
|
||||
|
||||
test('unflattenObject is a Function', () => {
|
||||
expect(unflattenObject).toBeInstanceOf(Function);
|
||||
});
|
||||
t.deepEqual(unflattenObject({ 'a.b.c': 1, d: 1 }), { a: { b: { c: 1 } }, d: 1 }, 'Unflattens an object with the paths for keys');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user