Test cleanup and fixes [a-b]
This commit is contained in:
@ -5,6 +5,8 @@ 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');
|
||||
test('Unflattens an object with the paths for keys', () => {
|
||||
expect(unflattenObject({ 'a.b.c': 1, d: 1 }), { a: { b: { c: 1 } }, d: 1 }).toEqual()
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user