Array unnest bugfix, fixes #50

This commit is contained in:
Bán Dénes 2021-12-12 13:23:33 +01:00
parent e58b80c2a9
commit 483f214bec
2 changed files with 22 additions and 7 deletions

View file

@ -7,6 +7,9 @@ describe('Prepare', function() {
d: 2,
'e.f': 3
}}).should.deep.equal({a: {b: {c: {d: 2, e: {f: 3}}}}})
p.unnest({'root': [{
'a.b': 1
}]}).should.deep.equal({root: [{a: {b: 1}}]})
})
it('extend', function() {