app/frontend/javascript/test_support/factories/plate_factory.js
Function plateFactory
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const plateFactory = function (options = {}) {
const { _filledWells, _wellOptions, ...plateOptions } = options
let uuid = plateOptions.uuid || 'plate-uuid'
let id = plateOptions.id || '1'
// Bit inefficient, in that we generate wells even if we immediately override them