stable
Clone or download
Read-only
Part of epic #12142 Baseline v1 Use ObjectMother pattern to ease model creation for tests. This improves maintainability (no need to know required attributes when creating new modal), consistency (all created model of same kind have same attributes) and readability (only attributes useful for tests are overriden). Change-Id: I4121e167801f4a20fabd4672ae8b6ea3fd4e4202
Modified Files
Name | ||||
---|---|---|---|---|
M | scripts/baseline/api/rest-querier.spec.js | +5 | −21 | Go to diff View file |
M | scripts/baseline/components/BaselineTable.spec.js | +2 | −20 | Go to diff View file |
M | scripts/baseline/components/BaselineTableBodyCells.spec.js | +2 | −20 | Go to diff View file |
M | scripts/baseline/components/NewBaselineMilestoneSelect.spec.js | +9 | −8 | Go to diff View file |
M | scripts/baseline/components/NewBaselineModal.spec.js | +3 | −8 | Go to diff View file |
M | scripts/baseline/presenters/baseline.spec.js | +8 | −4 | Go to diff View file |
A | scripts/baseline/support/factories.js | +110 | −0 | Go to diff View file |