Created
August 1, 2016 01:21
-
-
Save ceremcem/a54f90923c6e6ec42c7daf24cf2768bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEST: function (){ | |
var a, b, result, expected; | |
a = { | |
a: 1, | |
b: 2, | |
c: { | |
ca: 1, | |
cb: 2 | |
} | |
}; | |
b = { | |
c: { | |
cb: 5 | |
} | |
}; | |
result = merge(a, b); | |
expected = { | |
a: 1, | |
b: 2, | |
c: { | |
ca: 1, | |
cb: 5 | |
} | |
}; | |
return { | |
result: result, | |
expected: expected | |
}; | |
} | |
EXPECTED: { a: 1, b: 2, c: { ca: 1, cb: 5 } } | |
RESULT : { a: 1, b: 2, c: { cb: 5 } } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment