Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.