rajington/chai-alexa

View on GitHub
src/chai-alexa.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function chaiAlexa has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function chaiAlexa(chai, utils) {
  // expect(response).to.have.sessionAttributes
  // chai.use(chaiJsonSchema);
  // chai.tv4.banUnknown = true;
  // chai.tv4.addSchema(skillsKitResponse);
Severity: Minor
Found in src/chai-alexa.js - About 1 hr to fix

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

        function assertPhrase(phrase) {
          const sanitizedPhrase = stripSSML(phrase).toLowerCase();
          const obj = utils.flag(this, 'object');
    
          // // validate response
    Severity: Minor
    Found in src/chai-alexa.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status