fractal-core
Version:
A minimalist and well crafted app, content or component is our conviction
17 lines • 459 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const ava_1 = require("ava");
const utils_1 = require("./utils");
ava_1.default('Clone an object', t => {
const obj = {
nested: {
deep: {
a: 1,
b: [1, 2, 3, { z: 10 }],
}
},
arr: ['a', 2, { key: 'value' }],
};
t.deepEqual(utils_1.clone(obj), obj);
});
//# sourceMappingURL=utils.spec.js.map