app/frontend/javascript/test_support/factories/json_factory.js
Function jsonFactory
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const jsonFactory = (factoryName, userAttributes = {}) => {
const factory = findFactory(factoryName)
const type = resourceName(factoryName)
const resource_config = new ResourceConfig(type)