actions-on-google / actions-on-google-testing-nodejs

Apache License 2.0
75 stars 18 forks source link

Issue with BasicCard containning no images #6

Closed jneveux closed 6 years ago

jneveux commented 6 years ago

Hi,

I'm using version 0.0.2. In my bot I have BasicCard which only contains text:

I get a crash here:

actions-on-google.js:183

imageUrl: i.basicCard.image.url,
imageAltText: i.basicCard.image.accessibilityText,

Would it be possible to test if the image exists?

Jean

Fleker commented 6 years ago

I'm working on a fix.

Fleker commented 6 years ago

Version 0.1.0 makes these fields optional, so your issue should be resolved.