Created
September 29, 2017 22:08
-
-
Save jkelvie/ff54515fc3afcac9de224319c7307dd3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test("Plays once", (done) => { | |
alexa.utter("get started").then((payload) => { | |
expect(payload.response.outputSpeech.ssml).toContain("What is the search term for it"); | |
return alexa.utter("incorrect guess"); | |
}).then((payload) => { | |
expect(payload.response.outputSpeech.ssml).toContain("Nice try"); | |
return alexa.utter("incorrect guess"); | |
}).then((payload) => { | |
expect(payload.response.outputSpeech.ssml).toContain("That is not correct"); | |
return alexa.utter("incorrect guess"); | |
}).then((payload) => { | |
expect(payload.response.outputSpeech.ssml).toContain("No more guesses"); | |
return alexa.utter("no"); | |
}).then((payload) => { | |
expect(payload.response.outputSpeech.ssml).toContain("Goodbye"); | |
done(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment