src/test/helpers/fixtures.js
Function buildSurvey
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildSurvey() {
beforeEach(function () {
this.buildSurvey = async function (surveyAttrs = {}) {
const descriptor = surveyAttrs.descriptor || RETROSPECTIVE_DESCRIPTOR
const cycleState = surveyAttrs.descriptor === WORK_PLAN_DESCRIPTOR ? GOAL_SELECTION : REFLECTION
Function buildSurvey
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.buildSurvey = async function (surveyAttrs = {}) {
const descriptor = surveyAttrs.descriptor || RETROSPECTIVE_DESCRIPTOR
const cycleState = surveyAttrs.descriptor === WORK_PLAN_DESCRIPTOR ? GOAL_SELECTION : REFLECTION
this.cycle = surveyAttrs.cycle || await factory.create('cycle', {state: cycleState})
this.cycleId = this.cycle.id