Open ihachani opened 6 years ago
Another issue is the BotTester
tests for undefined
when a card is returned
The bot returns the message in the example above.
return botTester
.sendMessageToBot('someText', undefined)
.runTest();
This passes when it should fail.
Good catch. The adaptive cards tests were a bit harder for me to work through because of how little I had interacted with them. Would you be interested in working with me on a solution?
&/also you should be able to mock the full adaptive card state without the session object. If I'm recalling correctly, the BotTester
does a deep comparison and ignores anything that isn't expected
I am trying to test an
AdaptiveCard
. I am using the example from the documentation to create the card.The example in the BotTester documentation says to test against an adaptive card object refrenece. My problem is I can't create the Adaptive card because I don't have a session object.