Skip to content

Commit

Permalink
fix(merge): Uncurried call not using passed objects
Browse files Browse the repository at this point in the history
  • Loading branch information
andreidmt committed Sep 3, 2020
1 parent b47f1f9 commit c4fcc80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/merge/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const merge = (...params) => {
}

// @signature (obj1, obj2)
return _merge(null, ...params)
return _merge(null, params)
}

export const mergeBy = (...params) => {
Expand Down
6 changes: 6 additions & 0 deletions src/merge/merge.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,11 @@ test("merge, mergeAll", t => {
"merge 2 objects - curried"
)

t.deepEqual(
merge(obj1, obj2),
{ a: "lorem", b: "ipsum", c: 41 },
"merge 2 objects - curried"
)

t.end()
})

0 comments on commit c4fcc80

Please sign in to comment.