The Alexa APIs for NodeJS consists of JS and Typescript definitions that represent the request and response JSON of Alexa services. These models act as core dependency for the Alexa Skills Kit NodeJS SDK (https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs).
Apache License 2.0
60
stars
35
forks
source link
Property 'ssml' does not exist on type 'PlainTextOutputSpeech'. #15
import { Response, ResponseEnvelope } from 'ask-sdk-model'
const asyncHandler = promisify(handler)
it.only('responds that linking is required for this skill', async () => {
const result: ResponseEnvelope = await asyncHandler(
createRequest(
RequestTypes.Intent,
Intents.ListSystemCapabilities,
SkillNames.MyIon,
undefined
),
null
)
console.log('result', JSON.stringify(result, null, 2))
expect(result.response.outputSpeech.ssml).to.equal(
'<speak>In order to use this skill, you must first link your account in the Alexa app.</speak>'
)
})
Mocha test won't run: