diff --git a/README.md b/README.md index 76c670a..55a3860 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ For a more in depth view, check out [the Bot Tester Framework Config doc](https: import { IAddress, IMessage, Message, Prompts, Session, UniversalBot } from 'botbuilder'; import { expect } from 'chai'; import { BotTester, TestConnector } from 'bot-tester'; +import { getAdaptiveCard, getAdaptiveCardAttachment, getAdaptiveCardMessage } from './adaptiveCardProvider'; const connector = new TestConnector(); @@ -113,6 +114,19 @@ describe('BotTester', () => { }); ``` +# Test Adaptive Cards +``` javascript + it('can correctly check against adaptive cards', () => { + bot.dialog('/', (session) => { + session.send(getAdaptiveCardMessage()); + }); + + return new BotTester(bot) + .sendMessageToBot('anything', getAdaptiveCardMessage()) + .runTest(); + }); +``` + # Inspect session ```javascript it('can inspect session state', () => { diff --git a/circle.yml b/circle.yml index bf43b1c..2b6bd96 100644 --- a/circle.yml +++ b/circle.yml @@ -1,7 +1,16 @@ machine: node: - version: 6.1.0 + version: 8.0.0 + environment: + PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin" +dependencies: + override: + - yarn + cache_directories: + - ~/.cache/yarn + test: override: - yarn lint && yarn coverage + diff --git a/docs/classes/_assertionlibraries_chaiexpectation_.chaiexpectation.html b/docs/classes/_assertionlibraries_chaiexpectation_.chaiexpectation.html index 0693f98..98c4f25 100644 --- a/docs/classes/_assertionlibraries_chaiexpectation_.chaiexpectation.html +++ b/docs/classes/_assertionlibraries_chaiexpectation_.chaiexpectation.html @@ -108,6 +108,7 @@
toEqual
Parameters
@@ -276,7 +303,7 @@toInclude
Parameters
@@ -354,6 +381,9 @@Returns void subject +
+ checkForMatchingAttachments
+
notToBeEmpty
diff --git a/docs/classes/_bottester_.bottester.html b/docs/classes/_bottester_.bottester.html
index 1059bed..7f529fd 100644
--- a/docs/classes/_bottester_.bottester.html
+++ b/docs/classes/_bottester_.bottester.html
@@ -142,7 +142,7 @@
bot: UniversalBot
@@ -177,7 +177,7 @@ config: IConfig
@@ -187,7 +187,7 @@ Service: MessageService
constructor
Parameters
@@ -167,7 +167,7 @@Private bot
Private config
Private messageService
message