src/test/factories/project.js
Function define
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function define(factory) {
const commonAttrs = {
id: cb => cb(null, faker.random.uuid()),
name: factory.sequence(n => `funky-falcon-${n}`),
chapterId: factory.assoc('chapter', 'id'),