san650/ember-cli-page-object

View on GitHub
addon/src/create.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function buildObject has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function buildObject(node, blueprintKey, blueprint, defaultBuilder) {
  let definition;

  // Preserve plain arrays, prevent `Error: string values are not supported in page object definitions Key: "0"` error
  if (Array.isArray(blueprint)) {
Severity: Minor
Found in addon/src/create.js - About 1 hr to fix

    Function create has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function create(definition = {}, options = {}) {
      if (typeof definition === 'string') {
        throw new Error('Definition can not be a string');
      }
    
    
    Severity: Minor
    Found in addon/src/create.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status