Last active
November 9, 2017 17:27
-
-
Save jkelvie/0aa2554ca4e6df748aedae0159dae793 to your computer and use it in GitHub Desktop.
Pokedex Launch Unit Test
This file contains 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("Launches and asks for voltorb, then cancels ", (done) => { | |
alexa.launch().then((payload) => { | |
expect(payload.response.outputSpeech.ssml).toContain("Ask me which number of pokemon you want to know about"); | |
return alexa.utter("100"); | |
}).then((payload) => { | |
expect(payload.response.outputSpeech.ssml).toContain("voltorb"); | |
return alexa.utter("no"); | |
}).then((payload) => { | |
expect(payload.response.outputSpeech.ssml).toContain("Thank you"); | |
expect(payload.response.shouldEndSession).toBe(true); | |
done(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment