Showing 3 of 3 total issues
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 testBrowser
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
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');
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