'use strict'; const { ActionsOnGoogleAva } = require('actions-on-google-testing'); const { expect } = require('chai'); const action = new ActionsOnGoogleAva(require('./test-credentials.json')); action.startTest('Facts about Google - direct cat path', action => { return action.startConversation() .then(({ textToSpeech }) => { return action.send('cats'); }) .then(({ ssml }) => { expect(ssml[0]).to.have.string("Alright, here's a cat fact.") return action.endTest(); }) });