src/chai-alexa.js
Function chaiAlexa
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function chaiAlexa(chai, utils) {
// expect(response).to.have.sessionAttributes
// chai.use(chaiJsonSchema);
// chai.tv4.banUnknown = true;
// chai.tv4.addSchema(skillsKitResponse);
Function assertPhrase
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function assertPhrase(phrase) {
const sanitizedPhrase = stripSSML(phrase).toLowerCase();
const obj = utils.flag(this, 'object');
// // validate response