Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
before(done => create(father, done));
beforeEach(done => {
father = Guardian.fake();
aunt = Guardian.fake();
child = Child.fake();
child.father = father;
create(father, aunt, child, (error, created) => {
father = _.first(created);
aunt = _.nth(created, 1);
child = _.last(created);
done(error, created);
});
});
before(done => create(child, done));
before(done => create(father, mother, aunt, brother, child, done));
before(done => create(father, done));
before(done => create(father, done));
beforeEach(done => {
father = Guardian.fake();
aunt = Guardian.fake();
child = Child.fake();
child.father = father;
create(father, aunt, child, (error, created) => {
father = _.first(created);
aunt = _.nth(created, 1);
child = _.last(created);
done(error, created);
});
});
before(done => create(...children, done));