- 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>
65 lines
1.1 KiB
JavaScript
65 lines
1.1 KiB
JavaScript
"use strict";
|
|
|
|
var _objectMergeDeep = require("../objectMergeDeep");
|
|
|
|
var _objectMergeDeep2 = _interopRequireDefault(_objectMergeDeep);
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
|
|
describe('objectMergeDeep', function () {
|
|
it('should deep merge two object', function () {
|
|
expect((0, _objectMergeDeep2["default"])({
|
|
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((0, _objectMergeDeep2["default"])({}, {
|
|
foo: {
|
|
bar: 1
|
|
}
|
|
})).toEqual({
|
|
foo: {
|
|
bar: 1
|
|
}
|
|
});
|
|
});
|
|
}); |