Test cleanup and fixes [a-b]

This commit is contained in:
Angelos Chalaris
2018-06-18 15:54:48 +03:00
parent 4f7da1be9b
commit d29974ebc9
151 changed files with 753 additions and 373 deletions

View File

@ -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()
});