Closed andrewjhunt closed 6 years ago
Please pull request a test + fix.
See pull request #364 https://github.com/alexa-js/alexa-app/pull/364
Is it a bug?
The API doc is not specific but it would be helpful if .reprompt() concatenated just like .say(). And the code looks like it is written to concat but just references the wrong var. But, the unit tests might suggest the current behavior is intentional.
Current code: this.response.response.reprompt.outputSpeech.ssml = SSML.fromStr(str, this.response.response.reprompt.outputSpeech.text);
Correction this.response.response.reprompt.outputSpeech.ssml = SSML.fromStr(str, this.response.response.reprompt.outputSpeech.ssml);
Need to reference the .ssml variable (instead of .text)