{"size": 573, "ext": "js", "max_stars_repo_path": "test/02-mixinDeep.tests.js", "max_stars_repo_name": "Stieneee/object-observable-lite", "max_stars_repo_stars_event_min_datetime": "2020-03-12T15:01:40.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-14T12:48:14.000Z", "max_issues_repo_path": "test/02-mixinDeep.tests.js", "max_issues_repo_name": "Stieneee/object-observable-lite", "max_issues_repo_issues_event_min_datetime": "2020-10-01T14:27:00.000Z", "max_issues_repo_issues_event_max_datetime": "2020-10-01T14:27:01.000Z", "max_forks_repo_path": "test/02-mixinDeep.tests.js", "max_forks_repo_name": "Stieneee/object-observable-lite", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 24.9130434783, "max_line_length": 52, "alphanum_fraction": 0.5794066318}
const mixinDeep = require('mixin-deep');

const { o1, o2 } = require('./data');

const ObjectObservable = require('../index');

describe('Test support for mixin-deep', () => {
  it('should mix the objects', () => {
    const changes = [];
    const testObject = o1();
    const secondObject = o2();
    const oo = ObjectObservable(testObject, (c) => {
      changes.push(c);
      // console.log(c);
      // console.log(c.type, c.path, c.value);
      // console.log(c.type, c.path);
    });

    mixinDeep(oo, secondObject);
    // mixinDeep(oo, secondObject);
  });
});
