2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

Fixing config weirdness

This commit is contained in:
Matt Zabriskie
2015-12-24 11:44:46 -07:00
parent cdedbf0bb1
commit 82847f737e
6 changed files with 176 additions and 49 deletions
+15
View File
@@ -23,5 +23,20 @@ describe('utils::merge', function () {
expect(d.foo).toEqual(789);
expect(d.bar).toEqual(456);
});
it('should merge recursively', function () {
var a = {foo: {bar: 123}};
var b = {foo: {baz: 456}, bar: {qux: 789}};
expect(merge(a, b)).toEqual({
foo: {
bar: 123,
baz: 456
},
bar: {
qux: 789
}
});
});
});