diff --git a/README.md b/README.md index acecc2f..76c670a 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Passing in the config overrides any default values or values set by bot-tester.j ignoreTypingEvent: boolean, ignoreEndOfConversationEvent: boolean, // Setting this to true will cause checkSession to hang and test to fail. - ignoreInternalSaveMessage?: boolean; + ignoreInternalSaveMessage: boolean; } ``` diff --git a/docs/classes/_assertionlibraries_chaiexpectation_.chaiexpectation.html b/docs/classes/_assertionlibraries_chaiexpectation_.chaiexpectation.html index 55551d3..0693f98 100644 --- a/docs/classes/_assertionlibraries_chaiexpectation_.chaiexpectation.html +++ b/docs/classes/_assertionlibraries_chaiexpectation_.chaiexpectation.html @@ -130,7 +130,7 @@

constructor

  • Parameters

    @@ -155,7 +155,7 @@

    Private message

    message: string
    @@ -165,7 +165,7 @@

    Private subject

    subject: __type
    @@ -183,7 +183,7 @@

    notToBeEmpty

    Returns void

    @@ -201,7 +201,7 @@

    toBeTrue

    Returns void

    @@ -219,7 +219,7 @@

    toDeeplyInclude

    @@ -252,7 +252,7 @@

    toEqual

    Parameters

    @@ -276,7 +276,7 @@

    toInclude

    Parameters

    diff --git a/docs/classes/_bottester_.bottester.html b/docs/classes/_bottester_.bottester.html index 96d0268..1059bed 100644 --- a/docs/classes/_bottester_.bottester.html +++ b/docs/classes/_bottester_.bottester.html @@ -142,7 +142,7 @@

    constructor

  • Parameters

    @@ -167,7 +167,7 @@

    Private bot

    bot: UniversalBot
    @@ -177,7 +177,7 @@

    Private config

    config: IConfig
    @@ -187,7 +187,7 @@

    Private messageService

    messageService: MessageService @@ -197,7 +197,7 @@

    Private sessionLoader

    sessionLoader: SessionService
    @@ -207,7 +207,7 @@

    Private testSteps

    testSteps: TestStep[]
    @@ -225,7 +225,7 @@

    addMessageFilter

    Parameters

    @@ -249,7 +249,7 @@

    checkSession

    Parameters

    @@ -275,7 +275,7 @@

    Private convertToIMessage<
  • Parameters

    @@ -299,7 +299,7 @@

    ignoreEndOfConversationEvent

    Returns BotTester

    @@ -317,7 +317,7 @@

    ignoreTypingEvent

    Returns BotTester

    @@ -335,7 +335,7 @@

    runTest

    @@ -358,7 +358,7 @@

    sendMessageToBot

    Parameters

    @@ -385,7 +385,7 @@

    sendMessageToBotAndExpectSaveWithNoRespon

    Parameters

    @@ -409,7 +409,7 @@

    sendMessageToBotIgnoringResponseOrder

    Parameters

    @@ -435,7 +435,7 @@

    Private sendMessageTo
  • @@ -476,7 +476,7 @@

    setTimeout

    Parameters

    @@ -500,7 +500,7 @@

    then

    Parameters

    @@ -524,7 +524,7 @@

    wait

    Parameters

    diff --git a/docs/classes/_expectedmessage_.expectedmessage.html b/docs/classes/_expectedmessage_.expectedmessage.html index b0e7732..def33d3 100644 --- a/docs/classes/_expectedmessage_.expectedmessage.html +++ b/docs/classes/_expectedmessage_.expectedmessage.html @@ -124,7 +124,7 @@

    constructor

  • Parameters

    @@ -146,7 +146,7 @@

    Private expectedResponseexpectedResponseCollection: PossibleExpectedMessageCollections

  • @@ -168,7 +168,7 @@

    checkForMessageMatch

  • @@ -200,7 +200,7 @@

    Private checkMessageT
  • @@ -237,7 +237,7 @@

    Private checkMessageT
  • @@ -269,7 +269,7 @@

    Private deepMessageMa
  • @@ -303,7 +303,7 @@

    toString

  • Returns string

    diff --git a/docs/classes/_messageservice_.messageservice.html b/docs/classes/_messageservice_.messageservice.html index 890bc76..d5b35e8 100644 --- a/docs/classes/_messageservice_.messageservice.html +++ b/docs/classes/_messageservice_.messageservice.html @@ -124,7 +124,7 @@

    constructor

  • Parameters

    @@ -149,7 +149,7 @@

    Private bot

    bot: UniversalBot
    @@ -159,7 +159,7 @@

    Private botToUserMess
    botToUserMessageChecker: botToUserMessageCheckerFunction
    @@ -169,7 +169,7 @@

    Private config

    config: IConfig
    @@ -186,7 +186,7 @@

    Private applyOutgoing
  • @@ -208,7 +208,7 @@

    sendMessageToBot

  • @@ -248,7 +248,7 @@

    Private setBotToUser<
  • diff --git a/docs/classes/_outgoingmessagecomparator_.outgoingmessagecomparator.html b/docs/classes/_outgoingmessagecomparator_.outgoingmessagecomparator.html index cb34fda..1695f92 100644 --- a/docs/classes/_outgoingmessagecomparator_.outgoingmessagecomparator.html +++ b/docs/classes/_outgoingmessagecomparator_.outgoingmessagecomparator.html @@ -125,7 +125,7 @@

    constructor

  • Parameters

    @@ -150,7 +150,7 @@

    Private expectedMessagesexpectedMessages: ExpectedMessage[]

  • @@ -160,7 +160,7 @@

    Private ignoreOrder

    ignoreOrder: boolean
    @@ -177,7 +177,7 @@

    compareOutgoingMessageToExpectedResponses

  • @@ -205,7 +205,7 @@

    Private compareOutgoing

    Parameters

    @@ -228,7 +228,7 @@

    Private compareOutgoing

    Parameters

    @@ -251,7 +251,7 @@

    Private dequeueNextEx
  • @@ -273,7 +273,7 @@

    expectsAdditionalMessages

  • @@ -295,7 +295,7 @@

    getTimeoutErrorMessage

  • Returns string

    diff --git a/docs/classes/_sessionservice_.sessionservice.html b/docs/classes/_sessionservice_.sessionservice.html index c87076f..fced763 100644 --- a/docs/classes/_sessionservice_.sessionservice.html +++ b/docs/classes/_sessionservice_.sessionservice.html @@ -126,7 +126,7 @@

    constructor

  • Parameters

    @@ -148,7 +148,7 @@

    Private bot

    bot: UniversalBot
    @@ -158,7 +158,7 @@

    Private currentSessioncurrentSessionLoadResolver: function

  • @@ -189,7 +189,7 @@

    Private savePerformed

    savePerformed: Promise<any>
    @@ -214,7 +214,7 @@

    Private applySessionL
  • @@ -238,7 +238,7 @@

    Private applySessionS
  • @@ -263,7 +263,7 @@

    Private createSession
  • @@ -296,7 +296,7 @@

    getInternalSaveMessage

  • @@ -329,7 +329,7 @@

    getSession

  • @@ -360,7 +360,7 @@

    Private loadSession

  • diff --git a/docs/classes/_testconnector_.testconnector.html b/docs/classes/_testconnector_.testconnector.html index 5dc1f68..e251080 100644 --- a/docs/classes/_testconnector_.testconnector.html +++ b/docs/classes/_testconnector_.testconnector.html @@ -122,7 +122,7 @@

    constructor

  • Returns TestConnector

    @@ -138,7 +138,7 @@

    Private newConvoCount
    newConvoCount: number
    @@ -148,7 +148,7 @@

    Private onEventHandle
    onEventHandler: function
    @@ -200,7 +200,7 @@

    Private onInvokeHandl
    onInvokeHandler: function
    @@ -265,7 +265,7 @@

    onEvent

  • Parameters

    @@ -327,7 +327,7 @@

    send

  • Parameters

    @@ -374,7 +374,7 @@

    startConversation

  • Parameters

    diff --git a/docs/enums/_expectedmessage_.expectedmessagetype.html b/docs/enums/_expectedmessage_.expectedmessagetype.html index 824808f..d1c5519 100644 --- a/docs/enums/_expectedmessage_.expectedmessagetype.html +++ b/docs/enums/_expectedmessage_.expectedmessagetype.html @@ -90,7 +90,7 @@

    IMessage

    IMessage:
    @@ -100,7 +100,7 @@

    Regex

    Regex:
    @@ -110,7 +110,7 @@

    String

    String:
    diff --git a/docs/interfaces/_assertionlibraries_iexpectation_.iexpectation.html b/docs/interfaces/_assertionlibraries_iexpectation_.iexpectation.html index 00d570a..99d2432 100644 --- a/docs/interfaces/_assertionlibraries_iexpectation_.iexpectation.html +++ b/docs/interfaces/_assertionlibraries_iexpectation_.iexpectation.html @@ -117,7 +117,7 @@

    notToBeEmpty

  • Returns void

    @@ -134,7 +134,7 @@

    toBeTrue

  • Returns void

    @@ -151,7 +151,7 @@

    toDeeplyInclude

  • Parameters

    @@ -174,7 +174,7 @@

    toEqual

  • Parameters

    @@ -197,7 +197,7 @@

    toInclude

  • Parameters

    diff --git a/docs/interfaces/_bottester_.ibottester.html b/docs/interfaces/_bottester_.ibottester.html index f15e0e8..fcbf781 100644 --- a/docs/interfaces/_bottester_.ibottester.html +++ b/docs/interfaces/_bottester_.ibottester.html @@ -119,7 +119,7 @@

    checkSession

  • @@ -156,7 +156,7 @@

    runTest

  • @@ -178,7 +178,7 @@

    sendMessageToBot

  • @@ -217,7 +217,7 @@

    sendMessageToBotAndExpectSaveWithNoRespon
  • @@ -249,7 +249,7 @@

    sendMessageToBotIgnoringResponseOrder

  • @@ -281,7 +281,7 @@

    then

  • @@ -313,7 +313,7 @@

    wait

  • diff --git a/docs/interfaces/_bottester_.ioptionsmodifier.html b/docs/interfaces/_bottester_.ioptionsmodifier.html index b5b119e..e920cd5 100644 --- a/docs/interfaces/_bottester_.ioptionsmodifier.html +++ b/docs/interfaces/_bottester_.ioptionsmodifier.html @@ -116,7 +116,7 @@

    addMessageFilter

  • @@ -147,7 +147,7 @@

    ignoreEndOfConversationEvent

  • @@ -169,7 +169,7 @@

    ignoreTypingEvent

  • @@ -191,7 +191,7 @@

    setTimeout

  • diff --git a/docs/interfaces/_config_.iconfig.html b/docs/interfaces/_config_.iconfig.html index f82a7c6..b7d7fb0 100644 --- a/docs/interfaces/_config_.iconfig.html +++ b/docs/interfaces/_config_.iconfig.html @@ -84,7 +84,7 @@

    Properties

    @@ -116,7 +116,7 @@

    Optional ignoreEndOf
    ignoreEndOfConversationEvent: boolean
    @@ -126,12 +126,12 @@

    Optional ignoreEndOf

    - -

    Optional ignoreInternalSveMessage

    -
    ignoreInternalSveMessage: boolean
    + +

    Optional ignoreInternalSaveMessage

    +
    ignoreInternalSaveMessage: boolean
    @@ -146,7 +146,7 @@

    Optional ignoreTypingignoreTypingEvent: boolean

    @@ -161,7 +161,7 @@

    Optional messageFiltersmessageFilters: MessageFilter[]

    @@ -176,7 +176,7 @@

    Optional timeout

    timeout: number
    @@ -248,7 +248,7 @@

    Optional timeout

    ignoreEndOfConversationEvent

  • - ignoreInternalSveMessage + ignoreInternalSaveMessage
  • ignoreTypingEvent diff --git a/docs/modules/_assertionlibraries_iexpectation_.html b/docs/modules/_assertionlibraries_iexpectation_.html index 6cd42d9..f91faed 100644 --- a/docs/modules/_assertionlibraries_iexpectation_.html +++ b/docs/modules/_assertionlibraries_iexpectation_.html @@ -95,7 +95,7 @@

    expect

  • diff --git a/docs/modules/_bottester_.html b/docs/modules/_bottester_.html index 47c32fb..3618309 100644 --- a/docs/modules/_bottester_.html +++ b/docs/modules/_bottester_.html @@ -98,7 +98,7 @@

    checkSessionFunction

    checkSessionFunction: function
    diff --git a/docs/modules/_builtinmessagefilters_.html b/docs/modules/_builtinmessagefilters_.html index 84549b0..c0ba873 100644 --- a/docs/modules/_builtinmessagefilters_.html +++ b/docs/modules/_builtinmessagefilters_.html @@ -91,7 +91,7 @@

    ignoreEndOfConversationEventFilter

  • Parameters

    @@ -114,7 +114,7 @@

    ignoreInternalSaveMessageFilter

  • Parameters

    @@ -137,7 +137,7 @@

    ignoreTypingEventFilter

  • Parameters

    diff --git a/docs/modules/_config_.html b/docs/modules/_config_.html index 54f65c1..8fb9837 100644 --- a/docs/modules/_config_.html +++ b/docs/modules/_config_.html @@ -98,7 +98,7 @@

    MessageFilter

    MessageFilter: function
    @@ -137,7 +137,7 @@

    NO_TIMEOUT

    NO_TIMEOUT: -1 = -1
    @@ -152,7 +152,7 @@

    config

    config: IConfig = configInternal
    diff --git a/docs/modules/_expectedmessage_.html b/docs/modules/_expectedmessage_.html index 8de014b..f75cf18 100644 --- a/docs/modules/_expectedmessage_.html +++ b/docs/modules/_expectedmessage_.html @@ -98,7 +98,7 @@

    PossibleExpectedMessageCollections

    PossibleExpectedMessageCollections: PossibleExpectedMessageType[]
    @@ -114,7 +114,7 @@

    PossibleExpectedMessageType

    PossibleExpectedMessageType: string | IMessage | RegExp | IEvent
    diff --git a/docs/modules/_messageservice_.html b/docs/modules/_messageservice_.html index d277c89..9637c51 100644 --- a/docs/modules/_messageservice_.html +++ b/docs/modules/_messageservice_.html @@ -91,7 +91,7 @@

    botToUserMessageCheckerFunction

    botToUserMessageCheckerFunction: function
    diff --git a/package.json b/package.json index 1ff4312..08274fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bot-tester", - "version": "3.2.1", + "version": "3.2.2", "description": "Easily test bots made with the bot builder framework", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -40,7 +40,7 @@ "cleanBuild": "npm run clean && npm run build", "watch": "tsc -w", "test": "node_modules/mocha/bin/_mocha --require node_modules/ts-node/register test/*.spec.ts", - "buildTypeDocs": "yarn cleanBuild && typedoc --excludeNotExported --out docs --hideGenerator src/BotTester.ts --module commonjs --gaID UA-105358964-1 --readme none && touch docs/.nojekyll", + "buildTypeDocs": "yarn cleanBuild && rm -rf docs && typedoc --excludeNotExported --out docs --hideGenerator src/BotTester.ts --module commonjs --gaID UA-105358964-1 --readme none && touch docs/.nojekyll", "ci": "npm run lint && npm run test", "coverage": "npm run coverageTests && nyc report --reporter=text-lcov | node_modules/.bin/coveralls", "coverageTests": "nyc node_modules/.bin/_mocha --require source-map-support/register test/**/*.spec.ts"