- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스) - Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포 - 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
58 lines
948 B
JavaScript
58 lines
948 B
JavaScript
import objectMergeDeep from '../objectMergeDeep';
|
|
describe('objectMergeDeep', function () {
|
|
it('should deep merge two object', function () {
|
|
expect(objectMergeDeep({
|
|
foo: 1,
|
|
bar: {
|
|
foo: 2,
|
|
bar: 3
|
|
},
|
|
baz: {
|
|
foo: {
|
|
foo: 1,
|
|
baz: 4
|
|
}
|
|
}
|
|
}, {
|
|
foobar: 4,
|
|
bar: {
|
|
bar: 4,
|
|
baz: 3
|
|
},
|
|
baz: {
|
|
foo: {
|
|
foo: 2,
|
|
bar: 3
|
|
},
|
|
bar: 1
|
|
}
|
|
})).toEqual({
|
|
foo: 1,
|
|
foobar: 4,
|
|
bar: {
|
|
foo: 2,
|
|
bar: 4,
|
|
baz: 3
|
|
},
|
|
baz: {
|
|
foo: {
|
|
foo: 2,
|
|
bar: 3,
|
|
baz: 4
|
|
},
|
|
bar: 1
|
|
}
|
|
});
|
|
});
|
|
it('should deep merge two object with new keys', function () {
|
|
expect(objectMergeDeep({}, {
|
|
foo: {
|
|
bar: 1
|
|
}
|
|
})).toEqual({
|
|
foo: {
|
|
bar: 1
|
|
}
|
|
});
|
|
});
|
|
}); |