Skip to content

Commit

Permalink
add test that ensures empty objects are present after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Tahler committed Jan 19, 2019
1 parent 3c7a040 commit 940c2bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion __tests__/utils/utils.js
Expand Up @@ -81,7 +81,7 @@ describe('Utils', () => {
let A = { a: 1, b: 2 }
let B = { b: -2, c: 3 }
let C = { a: 1, b: { m: 10, n: 11 } }
let D = { a: 1, b: { n: 111, o: 22 } }
let D = { a: 1, b: { n: 111, o: 22, p: {} } }

test('simple', () => {
let Z = api.utils.hashMerge(A, B)
Expand All @@ -103,6 +103,7 @@ describe('Utils', () => {
expect(Z.b.m).toEqual(10)
expect(Z.b.n).toEqual(111)
expect(Z.b.o).toEqual(22)
expect(Z.b.p).toEqual({})
})
})

Expand Down

0 comments on commit 940c2bc

Please sign in to comment.