rajington/chai-alexa

View on GitHub

Showing 3 of 3 total issues

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 testBrowser has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function testBrowser() {
      // Our testing bundle is made up of our unit tests, which
      // should individually load up pieces of our application.
      // We also include the browser setup file.
      const testFiles = glob.sync('./test/unit/**/*.js');
    Severity: Minor
    Found in gulpfile.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
        Severity
        Category
        Status
        Source
        Language