diff --git a/libraries/botbuilder-dialogs-adaptive-testing/etc/botbuilder-dialogs-adaptive-testing.api.md b/libraries/botbuilder-dialogs-adaptive-testing/etc/botbuilder-dialogs-adaptive-testing.api.md index 77d4e25fbe..0909a2da3a 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/etc/botbuilder-dialogs-adaptive-testing.api.md +++ b/libraries/botbuilder-dialogs-adaptive-testing/etc/botbuilder-dialogs-adaptive-testing.api.md @@ -31,7 +31,7 @@ import { StringExpression } from 'adaptive-expressions'; import { TestAdapter } from 'botbuilder-core'; import { TurnContext } from 'botbuilder-core'; -// @public (undocumented) +// @public export class AdaptiveTestBotComponent extends BotComponent { // (undocumented) configureServices(services: ServiceCollection, _configuration: Configuration): void; @@ -41,10 +41,9 @@ export class AdaptiveTestBotComponent extends BotComponent { export class AssertCondition extends Dialog implements AssertConditionConfiguration { // (undocumented) static $kind: string; - beginDialog(dc: DialogContext, options?: O): Promise; + beginDialog(dc: DialogContext, _options?: O): Promise; condition: Expression; description: StringExpression; - // (undocumented) getConverter(property: keyof AssertConditionConfiguration): Converter | ConverterFactory; // (undocumented) protected onComputeId(): string; @@ -63,7 +62,7 @@ export class AssertNoActivity extends TestAction implements AssertNoActivityConf // (undocumented) static $kind: string; description: string; - execute(adapter: TestAdapter, callback: (context: TurnContext) => Promise, inspector?: Inspector): Promise; + execute(adapter: TestAdapter, _callback: (context: TurnContext) => Promise, _inspector?: Inspector): Promise; getConditionDescription(): string; } @@ -89,7 +88,7 @@ export class AssertReplyActivity extends TestAction implements AssertReplyActivi static $kind: string; assertions: string[]; description: string; - execute(testAdapter: TestAdapter, callback: (context: TurnContext) => Promise, inspector?: Inspector): Promise; + execute(testAdapter: TestAdapter, _callback: (context: TurnContext) => Promise, _inspector?: Inspector): Promise; getConditionDescription(): string; timeout: number; validateReply(activity: Activity): void; @@ -137,7 +136,7 @@ export class AssertTelemetryContains extends TestAction implements AssertTelemet static $kind: string; description: string; events: string[]; - execute(adapter: TestAdapter, callback: (context: TurnContext) => Promise, inspector?: Inspector): Promise; + execute(_adapter: TestAdapter, _callback: (context: TurnContext) => Promise, inspector?: Inspector): Promise; } // @public (undocumented) @@ -148,11 +147,11 @@ export interface AssertTelemetryContainsConfiguration { events?: string[]; } -// @public (undocumented) +// @public class CustomEvent_2 extends TestAction implements CustomEventConfiguration { // (undocumented) static $kind: string; - execute(testAdapter: TestAdapter, callback: (context: TurnContext) => Promise, inspector?: Inspector): Promise; + execute(testAdapter: TestAdapter, callback: (context: TurnContext) => Promise, _inspector?: Inspector): Promise; name: string; value?: T; } @@ -188,7 +187,7 @@ export class MemoryAssertions extends TestAction implements MemoryAssertionsConf static $kind: string; assertions: string[]; description: string; - execute(adapter: TestAdapter, callback: (context: TurnContext) => Promise, inspector?: Inspector): Promise; + execute(_adapter: TestAdapter, _callback: (context: TurnContext) => Promise, inspector?: Inspector): Promise; } // @public (undocumented) @@ -229,7 +228,6 @@ export class MockLuisRecognizer extends Recognizer { export class MockSettingsMiddleware implements Middleware { // Warning: (ae-forgotten-export) The symbol "SettingMock" needs to be exported by the entry point index.d.ts constructor(settingMocks: SettingMock[]); - // (undocumented) onTurn(context: TurnContext, next: () => Promise): Promise; } @@ -238,7 +236,7 @@ export class SetProperties extends TestAction { // (undocumented) static $kind: string; assignments: PropertyAssignment[]; - execute(adapter: TestAdapter, callback: (context: TurnContext) => Promise, inspector?: Inspector): Promise; + execute(_adapter: TestAdapter, _callback: (context: TurnContext) => Promise, inspector?: Inspector): Promise; // (undocumented) getConverter(property: keyof SetPropertiesConfiguration): Converter | ConverterFactory; } @@ -329,7 +327,7 @@ export interface UserActivityConfiguration { export class UserConversationUpdate extends TestAction implements UserConversationUpdateConfiguration { // (undocumented) static $kind: string; - execute(testAdapter: TestAdapter, callback: (context: TurnContext) => Promise, inspector?: Inspector): Promise; + execute(testAdapter: TestAdapter, callback: (context: TurnContext) => Promise, _inspector?: Inspector): Promise; membersAdded: string[]; membersRemoved: string[]; } @@ -346,7 +344,7 @@ export interface UserConversationUpdateConfiguration { export class UserDelay extends TestAction implements UserDelayConfiguration { // (undocumented) static $kind: string; - execute(testAdapter: TestAdapter, callback: (context: TurnContext) => Promise, inspector?: Inspector): Promise; + execute(_testAdapter: TestAdapter, _callback: (context: TurnContext) => Promise, _inspector?: Inspector): Promise; timespan: number; } @@ -360,7 +358,7 @@ export interface UserDelayConfiguration { export class UserSays extends TestAction implements UserSaysConfiguration { // (undocumented) static $kind: string; - execute(testAdapter: TestAdapter, callback: (context: TurnContext) => Promise, inspector?: Inspector): Promise; + execute(testAdapter: TestAdapter, callback: (context: TurnContext) => Promise, _inspector?: Inspector): Promise; locale: string; text: string; user: string; @@ -378,7 +376,7 @@ export interface UserSaysConfiguration { export class UserTyping extends Configurable implements TestAction, UserTypingConfiguration { // (undocumented) static $kind: string; - execute(testAdapter: TestAdapter, callback: (context: TurnContext) => Promise, inspector?: Inspector): Promise; + execute(testAdapter: TestAdapter, callback: (context: TurnContext) => Promise, _inspector?: Inspector): Promise; user: string; } diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/actions/assertCondition.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/actions/assertCondition.ts index 3f38672b22..a8b3acd773 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/actions/assertCondition.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/actions/assertCondition.ts @@ -37,6 +37,13 @@ export class AssertCondition extends Dialog implements */ description: StringExpression; + /** + * Description of assertion. + * + * @param property Properties that extend RecognizerConfiguration. + * @returns Expression converter. + * + */ getConverter(property: keyof AssertConditionConfiguration): Converter | ConverterFactory { switch (property) { case 'condition': @@ -50,11 +57,12 @@ export class AssertCondition extends Dialog implements /** * Called when the dialog is started and pushed onto the dialog stack. + * * @param dc The DialogContext for the current turn of the conversation. - * @param options Additional information to pass to the prompt being started. + * @param _options Additional information to pass to the prompt being started. * @returns A Promise representing the asynchronous operation. */ - async beginDialog(dc: DialogContext, options?: O): Promise { + async beginDialog(dc: DialogContext, _options?: O): Promise { const { value } = this.condition.tryEvaluate(dc.state); if (!value) { let desc = this.description && this.description.getValue(dc.state); @@ -68,6 +76,7 @@ export class AssertCondition extends Dialog implements /** * @protected + * @returns String of the condition which must be true. */ protected onComputeId(): string { return `AssertCondition[${this.condition.toString()}]`; diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/adaptiveTestBotComponent.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/adaptiveTestBotComponent.ts index 080a0ef1ee..7eddf59a77 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/adaptiveTestBotComponent.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/adaptiveTestBotComponent.ts @@ -28,7 +28,14 @@ import { SettingStringMock } from './settingMocks/settingStringMock'; import { TestScript } from './testScript'; import { UserTokenBasicMock } from './userTokenMocks'; +/** + * Adaptive Testing of BotComponent. + */ export class AdaptiveTestBotComponent extends BotComponent { + /** + * @param services Services collection to mimic dependency injection. + * @param _configuration Configuration for the bot component. + */ configureServices(services: ServiceCollection, _configuration: Configuration): void { services.composeFactory('declarativeTypes', (declarativeTypes) => declarativeTypes.concat({ diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/dialogInspector.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/dialogInspector.ts index 9dcc6b42be..3e84e9ad60 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/dialogInspector.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/dialogInspector.ts @@ -127,7 +127,7 @@ export class DialogInspector { } if (!this.conversationState) { - throw new Error(`The bot's 'conversationState' has not been configured.`); + throw new Error("The bot's 'conversationState' has not been configured."); } botStateSet.add(this.conversationState); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/httpRequestMocks/httpRequestMock.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/httpRequestMocks/httpRequestMock.ts index efebb31c44..6512b2c0cf 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/httpRequestMocks/httpRequestMock.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/httpRequestMocks/httpRequestMock.ts @@ -9,6 +9,9 @@ import { Configurable, Converter } from 'botbuilder-dialogs'; import { ResourceExplorer } from 'botbuilder-dialogs-declarative'; +/** + * Base class for all http request mocks. + */ export abstract class HttpRequestMock extends Configurable { abstract setup(): void; } @@ -17,8 +20,15 @@ export abstract class HttpRequestMock extends Configurable { * The type converters for UserTokenMock. */ export class HttpRequestMocksConverter implements Converter { + /** + * @param _resourceExplorer The resource to access the content. + */ constructor(private readonly _resourceExplorer: ResourceExplorer) {} + /** + * @param value Array of strings and Setting Mock elements. + * @returns Array of Setting Mocks. + */ convert(value: (string | HttpRequestMock)[]): HttpRequestMock[] { return value.map((item: string | HttpRequestMock) => { if (typeof item === 'string') { diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockHttpRequestMiddleware.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockHttpRequestMiddleware.ts index 2cbd9ce731..2b39d6a720 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockHttpRequestMiddleware.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockHttpRequestMiddleware.ts @@ -46,6 +46,10 @@ export class MockHttpRequestMiddleware implements Middleware { this._httpRequestMocks = httpRequestMocks; } + /** + * @param context The context object for this turn. + * @param next The delegate to call to continue the bot middleware pipeline. + */ async onTurn(context: TurnContext, next: () => Promise): Promise { context.turnState.set(MockHttpRequestMiddlewareKey, this); await next(); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockLuisExtensions.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockLuisExtensions.ts index 88bff00291..3422b7cf5e 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockLuisExtensions.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockLuisExtensions.ts @@ -1,3 +1,4 @@ +/* eslint-disable security/detect-non-literal-fs-filename */ /** * @module botbuilder-dialogs-adaptive-testing */ diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockLuisLoader.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockLuisLoader.ts index e55a3dd98b..3b9cb9d65f 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockLuisLoader.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockLuisLoader.ts @@ -26,6 +26,11 @@ export class MockLuisLoader implements CustomDeserializer) {} + /** + * @param config Config to recognize intents and entities in a users utterance. + * @param type Cached LUIS responses for testing. + * @returns The new object created from the object parameter. + */ load(config: LuisAdaptiveRecognizerConfiguration, type: Newable): MockLuisRecognizer { const recognizer = new LuisAdaptiveRecognizer().configure(config as Record); const externalEntityRecognizer = config.externalEntityRecognizer; diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockLuisRecognizer.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockLuisRecognizer.ts index c8a66f1842..b2b240f517 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockLuisRecognizer.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockLuisRecognizer.ts @@ -1,3 +1,4 @@ +/* eslint-disable security/detect-non-literal-fs-filename */ /** * @module botbuilder-dialogs-adaptive-testing */ @@ -73,6 +74,13 @@ export class MockLuisRecognizer extends Recognizer { } } + /** + * @param dialogContext Dialog context. + * @param activity Activity to recognize. + * @param telemetryProperties Additional properties to be logged to telemetry with the LuisResult event. + * @param telemetryMetrics Additional metrics to be logged to telemetry with the LuisResult event. + * @returns Analysis of utterance. + */ async recognize( dialogContext: DialogContext, activity: Activity, diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockSettingsMiddleware.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockSettingsMiddleware.ts index 2dca07be11..51e5934c81 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockSettingsMiddleware.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/mocks/mockSettingsMiddleware.ts @@ -37,6 +37,12 @@ export class MockSettingsMiddleware implements Middleware { }); } + /** + * Processes an incoming activity. + * + * @param context The context object for this turn. + * @param next The delegate to call to continue the bot middleware pipeline. + */ async onTurn(context: TurnContext, next: () => Promise): Promise { if (!this._configured) { if (this._mockData.size) { diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/setTestOptionsMiddleware.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/setTestOptionsMiddleware.ts index fb23ce1e61..402e40101c 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/setTestOptionsMiddleware.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/setTestOptionsMiddleware.ts @@ -10,9 +10,13 @@ import { Middleware, TurnContext, ActivityTypes } from 'botbuilder-core'; const CONVERSATION_STATE = 'ConversationState'; +/** + * Middleware that catch "SetTestOptions" event and save into "Conversation.TestOptions". + */ export class SetTestOptionsMiddleware implements Middleware { /** * Processes an incoming event activity. + * * @param context The context object for this turn. * @param next The delegate to call to continue the bot middleware pipeline */ diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/settingMocks/settingMock.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/settingMocks/settingMock.ts index 2cbf2f4148..10346dcd80 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/settingMocks/settingMock.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/settingMocks/settingMock.ts @@ -18,8 +18,15 @@ export abstract class SettingMock extends Configurable {} * The type converters for SettingMock. */ export class SettingMocksConverter implements Converter { + /** + * @param _resourceExplorer Parameter to access content resources. + */ constructor(private readonly _resourceExplorer: ResourceExplorer) {} + /** + * @param value Array of strings and Setting Mock elements. + * @returns Array of Setting Mocks. + */ convert(value: (string | SettingMock)[]): SettingMock[] { return value.map((item: string | SettingMock) => { if (typeof item === 'string') { diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertNoActivity.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertNoActivity.ts index 09e9ab67c4..b8f8f23844 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertNoActivity.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertNoActivity.ts @@ -36,14 +36,14 @@ export class AssertNoActivity extends TestAction implements AssertNoActivityConf /** * Execute the test. * - * @param testAdapter Adapter to execute against. - * @param callback Logic for the bot to use. - * @param inspector Inspector for dialog context. + * @param adapter Adapter to execute against. + * @param _callback Logic for the bot to use. + * @param _inspector Inspector for dialog context. */ async execute( adapter: TestAdapter, - callback: (context: TurnContext) => Promise, - inspector?: Inspector + _callback: (context: TurnContext) => Promise, + _inspector?: Inspector ): Promise { if (adapter.activeQueue.length > 0) { throw new Error(this.getConditionDescription()); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertReply.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertReply.ts index 4afd2e2bb4..de8a2c6bcd 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertReply.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertReply.ts @@ -32,6 +32,7 @@ export class AssertReply extends AssertReplyActivity implements AssertReplyConfi /** * Gets the text to assert for an activity. + * * @returns String. */ getConditionDescription(): string { @@ -40,6 +41,7 @@ export class AssertReply extends AssertReplyActivity implements AssertReplyConfi /** * Validates the reply of an activity. + * * @param activity The activity to verify. */ validateReply(activity: Activity) { diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertReplyActivity.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertReplyActivity.ts index 6b3ec264a8..0b3ef33b47 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertReplyActivity.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertReplyActivity.ts @@ -39,6 +39,7 @@ export class AssertReplyActivity extends TestAction implements AssertReplyActivi /** * Gets the text to assert for an activity. + * * @returns String. */ getConditionDescription(): string { @@ -47,6 +48,7 @@ export class AssertReplyActivity extends TestAction implements AssertReplyActivi /** * Validates the reply of an activity. + * * @param activity The activity to verify. */ validateReply(activity: Activity): void { @@ -64,17 +66,19 @@ export class AssertReplyActivity extends TestAction implements AssertReplyActivi /** * Execute the test. + * * @param testAdapter Adapter to execute against. - * @param callback Logic for the bot to use. - * @param inspector Inspector for dialog context. + * @param _callback Logic for the bot to use. + * @param _inspector Inspector for dialog context. * @returns A Promise that represents the work queued to execute. */ async execute( testAdapter: TestAdapter, - callback: (context: TurnContext) => Promise, - inspector?: Inspector + _callback: (context: TurnContext) => Promise, + _inspector?: Inspector ): Promise { const start = new Date(); + /* eslint-disable no-constant-condition */ while (true) { const current = new Date(); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertReplyOneOf.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertReplyOneOf.ts index 048c34dc81..fcb0fd4c1a 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertReplyOneOf.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertReplyOneOf.ts @@ -32,6 +32,7 @@ export class AssertReplyOneOf extends AssertReplyActivity implements AssertReply /** * Gets the text to assert for an activity. + * * @returns String. */ getConditionDescription(): string { @@ -40,6 +41,7 @@ export class AssertReplyOneOf extends AssertReplyActivity implements AssertReply /** * Validates the reply of an activity. + * * @param activity The activity to verify. */ validateReply(activity: Activity): void { diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertTelemetryContains.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertTelemetryContains.ts index 5d0ad01738..a301b39a67 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertTelemetryContains.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/assertTelemetryContains.ts @@ -33,14 +33,15 @@ export class AssertTelemetryContains extends TestAction implements AssertTelemet /** * Execute the test. - * @param testAdapter Adapter to execute against. - * @param callback Logic for the bot to use. + * + * @param _adapter Adapter to execute against. + * @param _callback Logic for the bot to use. * @param inspector Inspector for dialog context. * @returns A Promise that represents the work queued to execute. */ async execute( - adapter: TestAdapter, - callback: (context: TurnContext) => Promise, + _adapter: TestAdapter, + _callback: (context: TurnContext) => Promise, inspector?: Inspector ): Promise { if (inspector) { diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/customEvent.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/customEvent.ts index 35a8875bb0..ab6dff462f 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/customEvent.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/customEvent.ts @@ -14,6 +14,9 @@ export interface CustomEventConfiguration { value?: unknown; } +/** + * Action to script sending custom event to the bot. + */ export class CustomEvent extends TestAction implements CustomEventConfiguration { static $kind = 'Microsoft.Test.CustomEvent'; /** @@ -28,15 +31,16 @@ export class CustomEvent extends TestAction implements CustomEventC /** * Execute the test. + * * @param testAdapter Adapter to execute against. * @param callback Logic for the bot to use. - * @param inspector Inspector for dialog context. + * @param _inspector Inspector for dialog context. * @returns A Promise that represents the work queued to execute. */ async execute( testAdapter: TestAdapter, callback: (context: TurnContext) => Promise, - inspector?: Inspector + _inspector?: Inspector ): Promise { if (!this.name) { throw Error('You must define the event name.'); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/memoryAssertions.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/memoryAssertions.ts index b387eb3e62..529b370cd0 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/memoryAssertions.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/memoryAssertions.ts @@ -33,14 +33,15 @@ export class MemoryAssertions extends TestAction implements MemoryAssertionsConf /** * Execute the test. - * @param testAdapter Adapter to execute against. - * @param callback Logic for the bot to use. + * + * @param _adapter Adapter to execute against. + * @param _callback Logic for the bot to use. * @param inspector Inspector for dialog context. * @returns A Promise that represents the work queued to execute. */ async execute( - adapter: TestAdapter, - callback: (context: TurnContext) => Promise, + _adapter: TestAdapter, + _callback: (context: TurnContext) => Promise, inspector?: Inspector ): Promise { if (inspector) { diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/setProperties.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/setProperties.ts index 206678044d..e734b3f4dc 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/setProperties.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/setProperties.ts @@ -46,6 +46,10 @@ export class SetProperties extends TestAction { */ assignments: PropertyAssignment[] = []; + /** + * @param property The key of the conditional selector configuration. + * @returns The converter for the selector configuration. + */ getConverter(property: keyof SetPropertiesConfiguration): Converter | ConverterFactory { switch (property) { case 'assignments': @@ -57,14 +61,15 @@ export class SetProperties extends TestAction { /** * Execute the test. - * @param testAdapter Adapter to execute against. - * @param callback Logic for the bot to use. + * + * @param _adapter Adapter to execute against. + * @param _callback Logic for the bot to use. * @param inspector Inspector for dialog context. * @returns A Promise that represents the work queued to execute. */ async execute( - adapter: TestAdapter, - callback: (context: TurnContext) => Promise, + _adapter: TestAdapter, + _callback: (context: TurnContext) => Promise, inspector?: Inspector ): Promise { if (inspector) { diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/userConversationUpdate.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/userConversationUpdate.ts index 98a55f3f3a..68125123be 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/userConversationUpdate.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/userConversationUpdate.ts @@ -32,15 +32,16 @@ export class UserConversationUpdate extends TestAction implements UserConversati /** * Execute the test. + * * @param testAdapter Adapter to execute against. * @param callback Logic for the bot to use. - * @param inspector Inspector for dialog context. + * @param _inspector Inspector for dialog context. * @returns A Promise that represents the work queued to execute. */ async execute( testAdapter: TestAdapter, callback: (context: TurnContext) => Promise, - inspector?: Inspector + _inspector?: Inspector ): Promise { const activity = testAdapter.makeActivity(); activity.type = ActivityTypes.ConversationUpdate; diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/userDelay.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/userDelay.ts index 4b52adea64..6a16047afc 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/userDelay.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/userDelay.ts @@ -26,15 +26,16 @@ export class UserDelay extends TestAction implements UserDelayConfiguration { /** * Execute the test. - * @param testAdapter Adapter to execute against. - * @param callback Logic for the bot to use. - * @param inspector Inspector for dialog context. + * + * @param _testAdapter Adapter to execute against. + * @param _callback Logic for the bot to use. + * @param _inspector Inspector for dialog context. * @returns A Promise that represents the work queued to execute. */ async execute( - testAdapter: TestAdapter, - callback: (context: TurnContext) => Promise, - inspector?: Inspector + _testAdapter: TestAdapter, + _callback: (context: TurnContext) => Promise, + _inspector?: Inspector ): Promise { await Promise.resolve((resolve) => setTimeout(resolve, this.timespan)); } diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/userSays.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/userSays.ts index 0125e514b4..3ffebcd254 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/userSays.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/userSays.ts @@ -37,15 +37,16 @@ export class UserSays extends TestAction implements UserSaysConfiguration { /** * Execute the test. + * * @param testAdapter Adapter to execute against. * @param callback Logic for the bot to use. - * @param inspector Inspector for dialog context. + * @param _inspector Inspector for dialog context. * @returns A Promise that represents the work queued to execute. */ async execute( testAdapter: TestAdapter, callback: (context: TurnContext) => Promise, - inspector?: Inspector + _inspector?: Inspector ): Promise { if (!this.text) { throw new Error('You must define the text property'); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/userTyping.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/userTyping.ts index 14f520585e..16d6927afa 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/userTyping.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/testActions/userTyping.ts @@ -27,15 +27,16 @@ export class UserTyping extends Configurable implements TestAction, UserTypingCo /** * Execute the test. + * * @param testAdapter Adapter to execute against. * @param callback Logic for the bot to use. - * @param inspector Inspector for dialog context. + * @param _inspector Inspector for dialog context. * @returns A Promise that represents the work queued to execute. */ async execute( testAdapter: TestAdapter, callback: (context: TurnContext) => Promise, - inspector?: Inspector + _inspector?: Inspector ): Promise { const typing = testAdapter.makeActivity(); typing.type = ActivityTypes.Typing; diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/testScript.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/testScript.ts index f21f6d2d20..8810dad51b 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/testScript.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/testScript.ts @@ -44,7 +44,7 @@ import { SettingMock, SettingMocksConverter } from './settingMocks/settingMock'; import { TestTelemetryClient } from './testTelemetryClient'; class DialogConverter implements Converter { - constructor(private readonly _resourceExplorer: ResourceExplorer) { } + constructor(private readonly _resourceExplorer: ResourceExplorer) {} convert(value: string | Dialog): Dialog { if (value instanceof Dialog) { @@ -132,6 +132,10 @@ export class TestScript extends Configurable implements TestScriptConfiguration */ enableTrace = false; + /** + * @param property The key of the conditional selector configuration. + * @returns The converter for the selector configuration. + */ getConverter(property: keyof TestScriptConfiguration): Converter | ConverterFactory { switch (property) { case 'dialog': diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/testTelemetryClient.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/testTelemetryClient.ts index 79af17484c..763ec8a631 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/testTelemetryClient.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/testTelemetryClient.ts @@ -10,27 +10,29 @@ import { * A test bot telemetry client that implements [BotTelemetryClient](xref:botbuilder-core.BotTelemetryClient). */ export class TestTelemetryClient implements BotTelemetryClient { - //Trace all events happened in trackEvents method invocations: string[] = []; /** * Creates a new instance of the [TestTelemetryClient](xref:botbuilder-dialogs-adaptive-testing.TestTelemetryClient) class. - * @param settings Optional. Settings for the telemetry client. + * + * @param _settings Optional. Settings for the telemetry client. */ - constructor(settings?: any) { + constructor(_settings?: any) { // noop } /** * Sends information about an external dependency (outgoing call) in the application. - * @param telemetry An object implementing [TelemetryDependency](xref:botbuilder-core.TelemetryDependency). + * + * @param _telemetry An object implementing [TelemetryDependency](xref:botbuilder-core.TelemetryDependency). */ - trackDependency(telemetry: TelemetryDependency) { + trackDependency(_telemetry: TelemetryDependency) { // noop } /** * Logs custom events with extensible named fields. + * * @param telemetry An object implementing [TelemetryEvent](xref:botbuilder-core.TelemetryEvent). */ trackEvent(telemetry: TelemetryEvent) { @@ -39,17 +41,19 @@ export class TestTelemetryClient implements BotTelemetryClient { /** * Logs a system exception. - * @param telemetry An object implementing [TelemetryException](xref:botbuilder-core.TelemetryException). + * + * @param _telemetry An object implementing [TelemetryException](xref:botbuilder-core.TelemetryException). */ - trackException(telemetry: TelemetryException) { + trackException(_telemetry: TelemetryException) { // noop } /** * Sends a trace message. - * @param telemetry An object implementing [TelemetryTrace](xref:botbuilder-core.TelemetryTrace). + * + * @param _telemetry An object implementing [TelemetryTrace](xref:botbuilder-core.TelemetryTrace). */ - trackTrace(telemetry: TelemetryTrace) { + trackTrace(_telemetry: TelemetryTrace) { // noop } diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/testUtils.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/testUtils.ts index a1564fe77e..b18500f43b 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/testUtils.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/testUtils.ts @@ -15,6 +15,7 @@ import { TestScript } from './testScript'; export class TestUtils { /** * Runs a test script with the specified name. + * * @param resourceExplorer Resource explorer used in test. * @param testName Test name. * @param adapter Test adapter. diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/userTokenMocks/userTokenBasicMock.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/userTokenMocks/userTokenBasicMock.ts index c9d1cad46f..7ac4007d98 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/userTokenMocks/userTokenBasicMock.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/userTokenMocks/userTokenBasicMock.ts @@ -50,6 +50,7 @@ export class UserTokenBasicMock extends UserTokenMock implements UserTokenBasicM /** * Method to setup this mock for an adapter. + * * @param adapter The test adapter to use for mocking. */ setup(adapter: TestAdapter): void { diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/userTokenMocks/userTokenMock.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/userTokenMocks/userTokenMock.ts index 8b690e2d5c..739f1196f5 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/userTokenMocks/userTokenMock.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/userTokenMocks/userTokenMock.ts @@ -24,8 +24,15 @@ export abstract class UserTokenMock extends Configurable { * The type converters for UserTokenMock. */ export class UserTokenMocksConverter implements Converter { + /** + * @param _resourceExplorer Parameter to access content resources. + */ constructor(private readonly _resourceExplorer: ResourceExplorer) {} + /** + * @param value Array of strings and Setting Mock elements. + * @returns Array of Setting Mocks. + */ convert(value: (string | UserTokenMock)[]): UserTokenMock[] { return value.map((item: string | UserTokenMock) => { if (typeof item === 'string') { diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/action.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/action.test.js index 9ae74163b7..553cfb100d 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/action.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/action.test.js @@ -112,31 +112,31 @@ describe('ActionTests', function () { resourceExplorer = makeResourceExplorer('ActionTests', LanguageGenerationBotComponent); }); - it('AttachmentInput', async () => { + it('AttachmentInput', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_AttachmentInput'); }); - it('BeginDialog', async () => { + it('BeginDialog', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_BeginDialog'); }); - it('BeginDialogWithExpr', async () => { + it('BeginDialogWithExpr', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_BeginDialogWithExpr'); }); - it('BeginDialogWithExpr2', async () => { + it('BeginDialogWithExpr2', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_BeginDialogWithExpr2'); }); - it('BeginDialogWithExpr3', async () => { + it('BeginDialogWithExpr3', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_BeginDialogWithExpr3'); }); - it('BeginDialogWithActivity', async () => { + it('BeginDialogWithActivity', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_BeginDialogWithActivity'); }); - it('BeginSkill', async () => { + it('BeginSkill', async function () { await TestUtils.runTestScript( resourceExplorer, 'Action_BeginSkill', @@ -147,7 +147,7 @@ describe('ActionTests', function () { ); }); - it('BeginSkillEndDialog', async () => { + it('BeginSkillEndDialog', async function () { await TestUtils.runTestScript( resourceExplorer, 'Action_BeginSkillEndDialog', @@ -158,163 +158,163 @@ describe('ActionTests', function () { ); }); - it('CancelAllDialogs', async () => { + it('CancelAllDialogs', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_CancelAllDialogs'); }); - it('CancelAllDialogs_DoubleCancel', async () => { + it('CancelAllDialogs_DoubleCancel', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_CancelAllDialogs_DoubleCancel'); }); - it('CancelDialog', async () => { + it('CancelDialog', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_CancelDialog'); }); - it('CancelDialogs_Processed', async () => { + it('CancelDialogs_Processed', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_CancelDialog_Processed'); }); - it('ChoiceInput', async () => { + it('ChoiceInput', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ChoiceInput'); }); - it('ChoiceInputWithLocale', async () => { + it('ChoiceInputWithLocale', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ChoiceInput_WithLocale'); }); - it('ChoicesInMemory', async () => { + it('ChoicesInMemory', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ChoicesInMemory'); }); - it('ChoiceInputSimpleTemplate_en', async () => { + it('ChoiceInputSimpleTemplate_en', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ChoiceInput_SimpleTemplate_en'); }); - it('ChoiceInputSimpleTemplate_es', async () => { + it('ChoiceInputSimpleTemplate_es', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ChoiceInput_SimpleTemplate_es'); }); - it('ChoiceInputComplexTemplate_en', async () => { + it('ChoiceInputComplexTemplate_en', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ChoiceInput_ComplexTemplate_en'); }); - it('ChoiceInputComplexTemplate_es', async () => { + it('ChoiceInputComplexTemplate_es', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ChoiceInput_ComplexTemplate_es'); }); - it('ChoiceStringInMemory', async () => { + it('ChoiceStringInMemory', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ChoiceStringInMemory'); }); - it('ConfirmInput', async () => { + it('ConfirmInput', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ConfirmInput'); }); - it('DeleteActivity', async () => { + it('DeleteActivity', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_DeleteActivity'); }); - it('DatetimeInput', async () => { + it('DatetimeInput', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_DatetimeInput'); }); - it('ConfirmInputSimpleTemplate_en', async () => { + it('ConfirmInputSimpleTemplate_en', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ConfirmInput_SimpleTemplate_en'); }); - it('ConfirmInputComplexTemplate_en', async () => { + it('ConfirmInputComplexTemplate_en', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ConfirmInput_ComplexTemplate_en'); }); - it('ConfirmInputSimpleTemplate_es', async () => { + it('ConfirmInputSimpleTemplate_es', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ConfirmInput_SimpleTemplate_es'); }); - it('ConfirmInputComplexTemplate_es', async () => { + it('ConfirmInputComplexTemplate_es', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ConfirmInput_ComplexTemplate_es'); }); - it('DeleteProperties', async () => { + it('DeleteProperties', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_DeleteProperties'); }); - it('DeleteProperty', async () => { + it('DeleteProperty', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_DeleteProperty'); }); - it('DoActions', async () => { + it('DoActions', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_DoActions'); }); - it('DynamicBeginDialog', async () => { + it('DynamicBeginDialog', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_DynamicBeginDialog'); }); - it('EditActionAppendActions', async () => { + it('EditActionAppendActions', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_EditActionAppendActions'); }); - it('EditActionInsertActions', async () => { + it('EditActionInsertActions', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_EditActionInsertActions'); }); - it('EditActionReplaceSequence', async () => { + it('EditActionReplaceSequence', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_EditActionReplaceSequence'); }); - it('EmitEvent', async () => { + it('EmitEvent', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_EmitEvent'); }); - it('EndDialog', async () => { + it('EndDialog', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_EndDialog'); }); - it('Foreach_Nested', async () => { + it('Foreach_Nested', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_Foreach_Nested'); }); - it('Foreach', async () => { + it('Foreach', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_Foreach'); }); - it('Foreach_Empty', async () => { + it('Foreach_Empty', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_Foreach_Empty'); }); - it('Foreach_Object', async () => { + it('Foreach_Object', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_Foreach_Object'); }); - it('ForeachPage_Empty', async () => { + it('ForeachPage_Empty', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ForeachPage_Empty'); }); - it('ForeachPage_Nested', async () => { + it('ForeachPage_Nested', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ForeachPage_Nested'); }); - it('ForeachPage_Partial', async () => { + it('ForeachPage_Partial', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ForeachPage_Partial'); }); - it('ForeachPage', async () => { + it('ForeachPage', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ForeachPage'); }); - it('GetActivityMembers', async () => { + it('GetActivityMembers', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_GetActivityMembers'); }); - it('GetConversationMembers', async () => { + it('GetConversationMembers', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_GetConversationMembers'); }); - it('GotoAction', async () => { + it('GotoAction', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_GotoAction'); }); - it('HttpRequest', async () => { + it('HttpRequest', async function () { nock('http://foo.com').post('/', 'Joe is 52').reply(200, 'string'); nock('http://foo.com').post('/', { text: 'Joe is 52', age: 52 }).reply(200, 'object'); nock('http://foo.com') @@ -332,39 +332,39 @@ describe('ActionTests', function () { await TestUtils.runTestScript(resourceExplorer, 'Action_HttpRequest'); }); - it('IfCondition', async () => { + it('IfCondition', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_IfCondition'); }); - it('InputDialog_ActivityProcessed', async () => { + it('InputDialog_ActivityProcessed', async function () { await TestUtils.runTestScript(resourceExplorer, 'InputDialog_ActivityProcessed'); }); - it('NumerInput', async () => { + it('NumerInput', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_NumberInput'); }); - it('NumerInputWithDefaultValue', async () => { + it('NumerInputWithDefaultValue', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_NumberInputWithDefaultValue'); }); - it('NumberInputWithValueExpression', async () => { + it('NumberInputWithValueExpression', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_NumberInputWithValueExpression'); }); - it('RepeatDialog', async () => { + it('RepeatDialog', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_RepeatDialog'); }); - it('RepeatDialogLoop', async () => { + it('RepeatDialogLoop', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_RepeatDialogLoop'); }); - it('ReplaceDialog', async () => { + it('ReplaceDialog', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ReplaceDialog'); }); - it('ReplaceDialogDifferentLevel', async () => { + it('ReplaceDialogDifferentLevel', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ReplaceDialogDifferentLevel'); }); @@ -374,83 +374,83 @@ describe('ActionTests', function () { }); */ - it('ReplaceDialogRoot', async () => { + it('ReplaceDialogRoot', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ReplaceDialogRoot'); }); - it('SendActivity', async () => { + it('SendActivity', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_SendActivity'); }); - it('SendActivityWithLGAlias', async () => { + it('SendActivityWithLGAlias', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_SendActivity_LGAlias'); }); - it('SetProperties', async () => { + it('SetProperties', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_SetProperties'); }); - it('SetProperty', async () => { + it('SetProperty', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_SetProperty'); }); - it('SignOutUser', async () => { + it('SignOutUser', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_SignOutUser'); }); - it('Switch_Bool', async () => { + it('Switch_Bool', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_Switch_Bool'); }); - it('Switch_Default', async () => { + it('Switch_Default', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_Switch_Default'); }); - it('Switch_Number', async () => { + it('Switch_Number', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_Switch_Number'); }); - it('Switch', async () => { + it('Switch', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_Switch'); }); - it('TextInput', async () => { + it('TextInput', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_TextInput'); }); - it('TextInputWithEmptyPrompt', async () => { + it('TextInputWithEmptyPrompt', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_TextInput_WithEmptyPrompt'); }); - it('TextInputWithInvalidPrompt', async () => { + it('TextInputWithInvalidPrompt', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_TextInputWithInvalidPrompt'); }); - it('TextInputWithValueExpression', async () => { + it('TextInputWithValueExpression', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_TextInputWithValueExpression'); }); - it('TextInputWithInvalidResponse', async () => { + it('TextInputWithInvalidResponse', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_TextInputWithInvalidResponse'); }); - it('TextInputWithNonStringInput', async () => { + it('TextInputWithNonStringInput', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_TextInputWithNonStringInput'); }); - it('TraceActivity', async () => { + it('TraceActivity', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_TraceActivity'); }); - it('ThrowException', async () => { + it('ThrowException', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_ThrowException'); }); - it('UpdateActivity', async () => { + it('UpdateActivity', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_UpdateActivity'); }); - it('WaitForInput', async () => { + it('WaitForInput', async function () { await TestUtils.runTestScript(resourceExplorer, 'Action_WaitForInput'); }); }); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/actionScope.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/actionScope.test.js index bba8de0333..f2ff2ae421 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/actionScope.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/actionScope.test.js @@ -7,31 +7,31 @@ describe('ActionScopeTests', function () { resourceExplorer = makeResourceExplorer('ActionScopeTests'); }); - it('Break', async () => { + it('Break', async function () { await TestUtils.runTestScript(resourceExplorer, 'ActionScope_Break'); }); - it('Continue', async () => { + it('Continue', async function () { await TestUtils.runTestScript(resourceExplorer, 'ActionScope_Continue'); }); - it('Goto_Nowhere', async () => { + it('Goto_Nowhere', async function () { await TestUtils.runTestScript(resourceExplorer, 'ActionScope_Goto_Nowhere'); }); - it('Goto_OnIntent', async () => { + it('Goto_OnIntent', async function () { await TestUtils.runTestScript(resourceExplorer, 'ActionScope_Goto_OnIntent'); }); - it('Goto_Parent', async () => { + it('Goto_Parent', async function () { await TestUtils.runTestScript(resourceExplorer, 'ActionScope_Goto_Parent'); }); - it('Goto_Switch', async () => { + it('Goto_Switch', async function () { await TestUtils.runTestScript(resourceExplorer, 'ActionScope_Goto_Switch'); }); - it('Goto', async () => { + it('Goto', async function () { await TestUtils.runTestScript(resourceExplorer, 'ActionScope_Goto'); }); }); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/crossTrainedRecognizerSet.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/crossTrainedRecognizerSet.test.js index b21005ad9e..684483f135 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/crossTrainedRecognizerSet.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/crossTrainedRecognizerSet.test.js @@ -33,47 +33,47 @@ describe('CrossTrainedRecognizerSetTests', function () { resourceExplorer = makeResourceExplorer('CrossTrainedRecognizerSetTests'); }); - it('AllNone', async () => { + it('AllNone', async function () { await TestUtils.runTestScript(resourceExplorer, 'CrossTrainedRecognizerSetTests_AllNone'); }); - it('CircleDefer', async () => { + it('CircleDefer', async function () { await TestUtils.runTestScript(resourceExplorer, 'CrossTrainedRecognizerSetTests_CircleDefer'); }); - it('DoubleDefer', async () => { + it('DoubleDefer', async function () { await TestUtils.runTestScript(resourceExplorer, 'CrossTrainedRecognizerSetTests_DoubleDefer'); }); - it('DoubleIntent', async () => { + it('DoubleIntent', async function () { await TestUtils.runTestScript(resourceExplorer, 'CrossTrainedRecognizerSetTests_DoubleIntent'); }); - it('Empty', async () => { + it('Empty', async function () { await TestUtils.runTestScript(resourceExplorer, 'CrossTrainedRecognizerSetTests_Empty'); }); - it('NoneWithIntent', async () => { + it('NoneWithIntent', async function () { await TestUtils.runTestScript(resourceExplorer, 'CrossTrainedRecognizerSetTests_NoneWithIntent'); }); - it('EntitiesWithNoneIntent', async () => { + it('EntitiesWithNoneIntent', async function () { await TestUtils.runTestScript(resourceExplorer, 'CrossTrainedRecognizerSetTests_NoneIntentWithEntities'); }); - describe('Telemetry', () => { + describe('Telemetry', function () { const recognizer = createRecognizer(); let spy; - beforeEach(() => { + beforeEach(function () { spy = spyOnTelemetryClientTrackEvent(recognizer); }); - afterEach(() => { + afterEach(function () { spy.restore(); }); - it('should log PII when logPersonalInformation is true', async () => { + it('should log PII when logPersonalInformation is true', async function () { recognizer.logPersonalInformation = true; await recognizeIntentAndValidateTelemetry({ @@ -91,7 +91,7 @@ describe('CrossTrainedRecognizerSetTests', function () { }); }); - it('should not log PII when logPersonalInformation is false', async () => { + it('should not log PII when logPersonalInformation is false', async function () { recognizer.logPersonalInformation = false; await recognizeIntentAndValidateTelemetry({ @@ -109,7 +109,7 @@ describe('CrossTrainedRecognizerSetTests', function () { }); }); - it('should refrain from logging PII by default', async () => { + it('should refrain from logging PII by default', async function () { const recognizerWithDefaultLogPii = createRecognizer(); const trackEventSpy = spyOnTelemetryClientTrackEvent(recognizerWithDefaultLogPii); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/functions.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/functions.test.js index 0439eafc97..e118b12323 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/functions.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/functions.test.js @@ -7,11 +7,11 @@ describe('ActionScopeTests', function () { resourceExplorer = makeResourceExplorer('FunctionsTests'); }); - it('HasPendingActions', async () => { + it('HasPendingActions', async function () { await TestUtils.runTestScript(resourceExplorer, 'hasPendingActions'); }); - it('IsDialogActive', async () => { + it('IsDialogActive', async function () { await TestUtils.runTestScript(resourceExplorer, 'isDialogActive'); }); }); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/injectLG.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/injectLG.test.js index a630d58eea..96fc120bb2 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/injectLG.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/injectLG.test.js @@ -7,7 +7,7 @@ describe('ActionScopeTests', function () { resourceExplorer = makeResourceExplorer('InjectLGTests'); }); - it('InjectLGTest', async () => { + it('InjectLGTest', async function () { await TestUtils.runTestScript(resourceExplorer, 'inject'); }); }); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/lgGenerators.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/lgGenerators.test.js index 17dfeab8c2..0ed48c726b 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/lgGenerators.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/lgGenerators.test.js @@ -7,31 +7,31 @@ describe('LGGeneratorTests', function () { resourceExplorer = makeResourceExplorer('LGGeneratorTests'); }); - it('MultiLandE2E', async () => { + it('MultiLandE2E', async function () { await TestUtils.runTestScript(resourceExplorer, 'MultiLangE2E'); }); - it('LGMiddleWare', async () => { + it('LGMiddleWare', async function () { await TestUtils.runTestScript(resourceExplorer, 'LGMiddleWare'); }); - it('LGScopeAccess', async () => { + it('LGScopeAccess', async function () { await TestUtils.runTestScript(resourceExplorer, 'LGScopeAccess'); }); - it('No Language Generator', async () => { + it('No Language Generator', async function () { await TestUtils.runTestScript(resourceExplorer, 'NoLanguageGeneration'); }); - it('Customize Language Policy', async () => { + it('Customize Language Policy', async function () { await TestUtils.runTestScript(resourceExplorer, 'CustomizeLanguagePolicy'); }); - it('LocaleInExpr', async () => { + it('LocaleInExpr', async function () { await TestUtils.runTestScript(resourceExplorer, 'LocaleInExpr'); }); - it('Manually set locale', async () => { + it('Manually set locale', async function () { await TestUtils.runTestScript(resourceExplorer, 'manuallySetLocale'); }); }); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/luisAdaptiveRecognizer.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/luisAdaptiveRecognizer.test.js index 3e2c0c3b92..eb06b79645 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/luisAdaptiveRecognizer.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/luisAdaptiveRecognizer.test.js @@ -4,7 +4,7 @@ const { MockLuisLoader, MockLuisRecognizer, TestUtils, useMockLuisSettings } = r const { makeResourceExplorer } = require('./utils'); describe('LuisAdaptiveRecognizerTests', function () { - it('Dynamic lists', async () => { + it('Dynamic lists', async function () { const resourceDir = path.join(__dirname, 'resources/LuisAdaptiveRecognizerTests'); const config = useMockLuisSettings(resourceDir); const explorer = makeResourceExplorer('LuisAdaptiveRecognizerTests', LuisBotComponent); @@ -12,7 +12,7 @@ describe('LuisAdaptiveRecognizerTests', function () { await TestUtils.runTestScript(explorer, 'DynamicLists', undefined, config); }); - it('Dynamic lists expression', async () => { + it('Dynamic lists expression', async function () { const resourceDir = path.join(__dirname, 'resources/LuisAdaptiveRecognizerTests'); const config = useMockLuisSettings(resourceDir); const explorer = makeResourceExplorer('LuisAdaptiveRecognizerTests', LuisBotComponent); @@ -20,7 +20,7 @@ describe('LuisAdaptiveRecognizerTests', function () { await TestUtils.runTestScript(explorer, 'DynamicListsExpression', undefined, config); }); - it('ExternalEntities', async () => { + it('ExternalEntities', async function () { const resourceDir = path.join(__dirname, 'resources/LuisAdaptiveRecognizerTests'); const config = useMockLuisSettings(resourceDir); const explorer = makeResourceExplorer('LuisAdaptiveRecognizerTests', LuisBotComponent); @@ -28,7 +28,7 @@ describe('LuisAdaptiveRecognizerTests', function () { await TestUtils.runTestScript(explorer, 'ExternalEntities', undefined, config); }); - it('Cached Luis Result', async () => { + it('Cached Luis Result', async function () { const resourceDir = path.join(__dirname, 'resources/LuisAdaptiveRecognizerTests'); const config = useMockLuisSettings(resourceDir); const explorer = makeResourceExplorer('LuisAdaptiveRecognizerTests', LuisBotComponent); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/misc.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/misc.test.js index 81a92a5a5d..759d3365f3 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/misc.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/misc.test.js @@ -7,11 +7,11 @@ describe('MiscTests', function () { resourceExplorer = makeResourceExplorer('MiscTests'); }); - it('IfCondition_EndDialog', async () => { + it('IfCondition_EndDialog', async function () { await TestUtils.runTestScript(resourceExplorer, 'IfCondition_EndDialog'); }); - it('Rule_Reprompt', async () => { + it('Rule_Reprompt', async function () { await TestUtils.runTestScript(resourceExplorer, 'Rule_Reprompt'); }); }); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/multiLanguageGeneratorTests.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/multiLanguageGeneratorTests.test.js index 1cc42aa46b..b4a6d9f08e 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/multiLanguageGeneratorTests.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/multiLanguageGeneratorTests.test.js @@ -7,19 +7,19 @@ describe('MultiLanguageGeneratorTests', function () { resourceExplorer = makeResourceExplorer('MultiLanguageGeneratorTests'); }); - it('Switch Language Activity', async () => { + it('Switch Language Activity', async function () { await TestUtils.runTestScript(resourceExplorer, 'SwitchLanguageActivity'); }); - it('Switch Language Conversation', async () => { + it('Switch Language Conversation', async function () { await TestUtils.runTestScript(resourceExplorer, 'SwitchLanguageConversation'); }); - it('Switch Language Turn', async () => { + it('Switch Language Turn', async function () { await TestUtils.runTestScript(resourceExplorer, 'SwitchLanguageTurn'); }); - it('Switch Language Turn Activity', async () => { + it('Switch Language Turn Activity', async function () { await TestUtils.runTestScript(resourceExplorer, 'SwitchLanguageTurnActivity'); }); }); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/multiLanguageRecognizer.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/multiLanguageRecognizer.test.js index 8195642439..788e30323a 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/multiLanguageRecognizer.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/multiLanguageRecognizer.test.js @@ -29,54 +29,54 @@ describe('MultiLanguageRecognizerTests', function () { resourceExplorer = makeResourceExplorer('MultiLanguageRecognizerTests'); }); - it('DefaultFallback', async () => { + it('DefaultFallback', async function () { await TestUtils.runTestScript(resourceExplorer, 'MultiLanguageRecognizerTest_DefaultFallback'); }); - it('EnFallback', async () => { + it('EnFallback', async function () { await TestUtils.runTestScript(resourceExplorer, 'MultiLanguageRecognizerTest_EnFallback'); }); - it('EnGbFallback', async () => { + it('EnGbFallback', async function () { await TestUtils.runTestScript(resourceExplorer, 'MultiLanguageRecognizerTest_EnGbFallback'); }); - it('EnUsFallback', async () => { + it('EnUsFallback', async function () { await TestUtils.runTestScript(resourceExplorer, 'MultiLanguageRecognizerTest_EnUsFallback'); }); - it('EnUsFallback_AcitivtyLocaleCasing', async () => { + it('EnUsFallback_AcitivtyLocaleCasing', async function () { await TestUtils.runTestScript( resourceExplorer, 'MultiLanguageRecognizerTest_EnUsFallback_ActivityLocaleCasing' ); }); - it('LanguagePolicy', async () => { + it('LanguagePolicy', async function () { await TestUtils.runTestScript(resourceExplorer, 'MultiLanguageRecognizerTest_LanguagePolicy'); }); - it('Locale case insensitivity', async () => { + it('Locale case insensitivity', async function () { await TestUtils.runTestScript(resourceExplorer, 'MultiLanguageRecognizerTest_LocaleCaseInsensitivity'); }); - it('Recognizer case insensitivity', async () => { + it('Recognizer case insensitivity', async function () { await TestUtils.runTestScript(resourceExplorer, 'MultiLanguageRecognizerTest_RecognizerCaseInsensitivity'); }); - describe('Telemetry', () => { + describe('Telemetry', function () { const recognizer = createRecognizer(); let spy; - beforeEach(() => { + beforeEach(function () { spy = spyOnTelemetryClientTrackEvent(recognizer); }); - afterEach(() => { + afterEach(function () { spy.restore(); }); - it('Merge - should log PII when logPersonalInformation is true', async () => { + it('Merge - should log PII when logPersonalInformation is true', async function () { recognizer.logPersonalInformation = true; await recognizeIntentAndValidateTelemetry({ @@ -87,7 +87,7 @@ describe('MultiLanguageRecognizerTests', function () { }); }); - it('Merge - should not log PII when logPersonalInformation is false', async () => { + it('Merge - should not log PII when logPersonalInformation is false', async function () { recognizer.logPersonalInformation = false; await recognizeIntentAndValidateTelemetry({ @@ -98,7 +98,7 @@ describe('MultiLanguageRecognizerTests', function () { }); }); - it('should refrain from logging PII by default', async () => { + it('should refrain from logging PII by default', async function () { const recognizerWithDefaultLogPii = createRecognizer(); const trackEventSpy = spyOnTelemetryClientTrackEvent(recognizerWithDefaultLogPii); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/qnaMakerRecognizer.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/qnaMakerRecognizer.test.js index fb75969d47..362bb44465 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/qnaMakerRecognizer.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/qnaMakerRecognizer.test.js @@ -12,14 +12,14 @@ describe('QnAMakerRecognizerTests', function () { const hostname = 'https://dummy-hostname.azurewebsites.net'; - it('returns answer', async () => { + it('returns answer', async function () { nock(hostname) .post(/knowledgebases/) .replyWithFile(200, path.join(__dirname, 'resources/QnAMakerRecognizerTests/QnaMaker_ReturnsAnswer.json')); await TestUtils.runTestScript(resourceExplorer, 'QnAMakerRecognizerTests_ReturnsAnswer'); }); - it('returns answer with intent', async () => { + it('returns answer with intent', async function () { nock(hostname) .post(/knowledgebases/) .replyWithFile( @@ -29,7 +29,7 @@ describe('QnAMakerRecognizerTests', function () { await TestUtils.runTestScript(resourceExplorer, 'QnAMakerRecognizerTests_ReturnsAnswerWithIntent'); }); - it('returns no answer', async () => { + it('returns no answer', async function () { nock(hostname) .post(/knowledgebases/) .replyWithFile( diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/recognizerSet.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/recognizerSet.test.js index 0e30ba35e9..92f1ee164c 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/recognizerSet.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/recognizerSet.test.js @@ -53,27 +53,27 @@ describe('RecognizerSetTests', function () { resourceExplorer = makeResourceExplorer('RecognizerSetTests'); }); - it('Merge', async () => { + it('Merge', async function () { await TestUtils.runTestScript(resourceExplorer, 'RecognizerSetTests_Merge'); }); - it('None', async () => { + it('None', async function () { await TestUtils.runTestScript(resourceExplorer, 'RecognizerSetTests_None'); }); - describe('Telemetry', () => { + describe('Telemetry', function () { const recognizer = createRecognizer(); let spy; - beforeEach(() => { + beforeEach(function () { spy = spyOnTelemetryClientTrackEvent(recognizer); }); - afterEach(() => { + afterEach(function () { spy.restore(); }); - it('Merge - should log PII when logPersonalInformation is true', async () => { + it('Merge - should log PII when logPersonalInformation is true', async function () { recognizer.logPersonalInformation = true; await recognizeIntentAndValidateTelemetry({ @@ -97,7 +97,7 @@ describe('RecognizerSetTests', function () { }); }); - it('Merge - should not log PII when logPersonalInformation is false', async () => { + it('Merge - should not log PII when logPersonalInformation is false', async function () { recognizer.logPersonalInformation = false; await recognizeIntentAndValidateTelemetry({ @@ -121,7 +121,7 @@ describe('RecognizerSetTests', function () { }); }); - it('should refrain from logging PII by default', async () => { + it('should refrain from logging PII by default', async function () { const recognizerWithDefaultLogPii = createRecognizer(); const trackEventSpy = spyOnTelemetryClientTrackEvent(recognizerWithDefaultLogPii); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/recognizerTelemetryUtils.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/recognizerTelemetryUtils.js index 04edc58434..99a6b695e2 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/recognizerTelemetryUtils.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/recognizerTelemetryUtils.js @@ -63,7 +63,7 @@ async function recognizeIntentAndValidateTelemetry({ text, callCount, recognizer const dialogContext = createContext(text); const activity = dialogContext.context.activity; - let result = await recognizer.recognize(dialogContext, activity); + const result = await recognizer.recognize(dialogContext, activity); validateIntent(text, result); validateTelemetry({ @@ -88,7 +88,7 @@ async function recognizeIntentAndValidateTelemetry_withCustomActivity({ text, ca customActivity.text = text; customActivity.locale = 'en-us'; - let result = await recognizer.recognize(dialogContext, customActivity); + const result = await recognizer.recognize(dialogContext, customActivity); validateIntent(text, result); validateTelemetry({ diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/regexRecognizer.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/regexRecognizer.test.js index abf987bc11..5fb1809859 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/regexRecognizer.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/regexRecognizer.test.js @@ -7,7 +7,7 @@ describe('RegexRecognizerTests', function () { resourceExplorer = makeResourceExplorer('RegexRecognizerTests'); }); - it('Entities', async () => { + it('Entities', async function () { await TestUtils.runTestScript(resourceExplorer, 'RegexRecognizerTests_Entities'); }); }); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/selector.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/selector.test.js index 313cf3fc04..8c31df76ae 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/selector.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/selector.test.js @@ -7,39 +7,39 @@ describe('SelectorTests', function () { resourceExplorer = makeResourceExplorer('SelectorTests'); }); - it('ConditionalSelector', async () => { + it('ConditionalSelector', async function () { await TestUtils.runTestScript(resourceExplorer, 'SelectorTests_ConditionalSelector'); }); - it('FirstSelector', async () => { + it('FirstSelector', async function () { await TestUtils.runTestScript(resourceExplorer, 'SelectorTests_FirstSelector'); }); - it('MostSpecificFirstSelector', async () => { + it('MostSpecificFirstSelector', async function () { await TestUtils.runTestScript(resourceExplorer, 'SelectorTests_MostSpecificFirstSelector'); }); - it('MostSpecificRandomSelector', async () => { + it('MostSpecificRandomSelector', async function () { await TestUtils.runTestScript(resourceExplorer, 'SelectorTests_MostSpecificRandomSelector'); }); - it('Priority', async () => { + it('Priority', async function () { await TestUtils.runTestScript(resourceExplorer, 'SelectorTests_Priority'); }); - it('Priority', async () => { + it('Priority', async function () { await TestUtils.runTestScript(resourceExplorer, 'SelectorTests_Float_Priority'); }); - it('RandomSelector', async () => { + it('RandomSelector', async function () { await TestUtils.runTestScript(resourceExplorer, 'SelectorTests_RandomSelector'); }); - it('RunOnce', async () => { + it('RunOnce', async function () { await TestUtils.runTestScript(resourceExplorer, 'SelectorTests_RunOnce'); }); - it('TrueSelector', async () => { + it('TrueSelector', async function () { await TestUtils.runTestScript(resourceExplorer, 'SelectorTests_TrueSelector'); }); }); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/settingsState.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/settingsState.test.js index 6877ba6f43..a14375320d 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/settingsState.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/settingsState.test.js @@ -11,11 +11,11 @@ describe('SettingsStateTests', function () { process.env['MicrosoftAppPassword'] = 'MICROSOFT_APP_PASSWORD'; process.env['ApplicationInsights:InstrumentationKey'] = '00000000-0000-0000-0000-000000000000'; - it('SettingsTest', async () => { + it('SettingsTest', async function () { await TestUtils.runTestScript(resourceExplorer, 'SettingsStateTests_SettingsTest'); }); - it('TestTurnStateAcrossBoundaries', async () => { + it('TestTurnStateAcrossBoundaries', async function () { await TestUtils.runTestScript(resourceExplorer, 'SettingsStateTests_TestTurnStateAcrossBoundaries'); }); }); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/valueRecognizer.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/valueRecognizer.test.js index 3180ef1406..30e155fabb 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/valueRecognizer.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/valueRecognizer.test.js @@ -7,11 +7,11 @@ describe('ValueRecognizerTests', function () { resourceExplorer = makeResourceExplorer('ValueRecognizerTests'); }); - it('WithIntent', async () => { + it('WithIntent', async function () { await TestUtils.runTestScript(resourceExplorer, 'ValueRecognizerTests_WithIntent'); }); - it('WithNoIntent', async () => { + it('WithNoIntent', async function () { await TestUtils.runTestScript(resourceExplorer, 'ValueRecognizerTests_WithNoIntent'); }); });