Inception model
Models
const Inception_Parent = Fractale.create("Inception_Parent", {
value: String
});
const Inception_Child = Fractale.create("Inception_Child", {
parent: Inception_Parent,
value: String
});Run
const { Inception_Child } = module.exports.get();
const child = new Inception_Child({
parent: { value: 'foo' },
value: 'bar',
});
_.test(child.parent.value, 'foo', 'Error on inception setter with dot');
const parent = child.parent;
const value = 'hello world';
parent.value = value;
_.test(child.parent.value, value, 'Error on inception setter with dot');
child.parent.value = 'foo';
_.test(child.parent.value, 'foo', 'Error on deep setter with dot');
resolve(child);Results
Last updated
Was this helpful?