diff --git a/dotnet/samples/04.ai.a.teamsChefBot/files/c#-migration.txt b/dotnet/samples/04.ai.a.teamsChefBot/files/c#-migration.txt index 26d9e3ad9..d5eff48a0 100644 --- a/dotnet/samples/04.ai.a.teamsChefBot/files/c#-migration.txt +++ b/dotnet/samples/04.ai.a.teamsChefBot/files/c#-migration.txt @@ -153,7 +153,7 @@ app.OnActivity(ActivityTypes.Message, async (ITurnContext turnContext, TurnState }); ``` -> The `OnActivity` method allows you to register a possible route for the incomming activity. For each method in the `ActivityHandler` or `TeamsActivityHandler` class, there is an equivalent route registration method. +> The `OnActivity` method allows you to register a possible route for the incoming activity. For each method in the `ActivityHandler` or `TeamsActivityHandler` class, there is an equivalent route registration method. If your bot derives from `ActivityHandler` or the `TeamsActivityHandler` refer to the following table to see which method maps to which `Application` route registration method. diff --git a/dotnet/samples/04.ai.g.teamsChefBot-streaming/files/c#-migration.txt b/dotnet/samples/04.ai.g.teamsChefBot-streaming/files/c#-migration.txt index 26d9e3ad9..d5eff48a0 100644 --- a/dotnet/samples/04.ai.g.teamsChefBot-streaming/files/c#-migration.txt +++ b/dotnet/samples/04.ai.g.teamsChefBot-streaming/files/c#-migration.txt @@ -153,7 +153,7 @@ app.OnActivity(ActivityTypes.Message, async (ITurnContext turnContext, TurnState }); ``` -> The `OnActivity` method allows you to register a possible route for the incomming activity. For each method in the `ActivityHandler` or `TeamsActivityHandler` class, there is an equivalent route registration method. +> The `OnActivity` method allows you to register a possible route for the incoming activity. For each method in the `ActivityHandler` or `TeamsActivityHandler` class, there is an equivalent route registration method. If your bot derives from `ActivityHandler` or the `TeamsActivityHandler` refer to the following table to see which method maps to which `Application` route registration method. diff --git a/getting-started/CONCEPTS/USER-AUTH.md b/getting-started/CONCEPTS/USER-AUTH.md index 9e9f8d9fe..d90eed9f3 100644 --- a/getting-started/CONCEPTS/USER-AUTH.md +++ b/getting-started/CONCEPTS/USER-AUTH.md @@ -144,7 +144,7 @@ auth=AuthOptions( settings={}) ``` -The `autoSignIn` property takes a callback that triggers the sign in flow if it returns true. It depends on the turn context from which the incomming activity details can be extracted. In the above example, the library will not attempt to sign the user in if the incoming activity `commandId` is _"signOutCommand"_. +The `autoSignIn` property takes a callback that triggers the sign in flow if it returns true. It depends on the turn context from which the incoming activity details can be extracted. In the above example, the library will not attempt to sign the user in if the incoming activity `commandId` is _"signOutCommand"_. This is useful if the user should be signed in by default before attempting to interacting with the bot in general. diff --git a/getting-started/MIGRATION/02.DOTNET.md b/getting-started/MIGRATION/02.DOTNET.md index 84d624187..932d27841 100644 --- a/getting-started/MIGRATION/02.DOTNET.md +++ b/getting-started/MIGRATION/02.DOTNET.md @@ -156,7 +156,7 @@ app.OnActivity(ActivityTypes.Message, async (ITurnContext turnContext, TurnState }); ``` -> The `OnActivity` method allows you to register a possible route for the incomming activity. For each method in the `ActivityHandler` or `TeamsActivityHandler` class, there is an equivalent route registration method. +> The `OnActivity` method allows you to register a possible route for the incoming activity. For each method in the `ActivityHandler` or `TeamsActivityHandler` class, there is an equivalent route registration method. If your bot derives from `ActivityHandler` or the `TeamsActivityHandler` refer to the following table to see which method maps to which `Application` route registration method. diff --git a/js/packages/teams-ai/src/AdaptiveCards.spec.ts b/js/packages/teams-ai/src/AdaptiveCards.spec.ts index 57cd25952..fccc2a816 100644 --- a/js/packages/teams-ai/src/AdaptiveCards.spec.ts +++ b/js/packages/teams-ai/src/AdaptiveCards.spec.ts @@ -79,7 +79,7 @@ describe('AdaptiveCards', () => { assert((await selector(context)) == true); }); - it('incomming activity is invalid', async () => { + it('incoming activity is invalid', async () => { const activity = { type: 'NotInvoke' }; @@ -133,7 +133,7 @@ describe('AdaptiveCards', () => { assert(typeof handler === 'function'); }); - it('should throw error if incomming activity is not valid', async () => { + it('should throw error if incoming activity is not valid', async () => { adaptiveCards.actionExecute(testVerb, testHandler); const activity = { @@ -566,7 +566,7 @@ describe('AdaptiveCards', () => { adaptiveCards.actionSubmit(verbRegex, testHandler); }); - it('incomming activity is valid action submit type and should match regex', async () => { + it('incoming activity is valid action submit type and should match regex', async () => { // a valid action submit type is a message activity with a value property. const activity = { type: 'message', @@ -581,7 +581,7 @@ describe('AdaptiveCards', () => { assert((await selector(context)) == true); }); - it('incomming activity is valid action submit type and should not match regex ', async () => { + it('incoming activity is valid action submit type and should not match regex ', async () => { // a valid action submit type is a message activity with a value property. const activity = { type: 'message', @@ -596,7 +596,7 @@ describe('AdaptiveCards', () => { assert((await selector(context)) == false); }); - it('incomming activity is invalid', async () => { + it('incoming activity is invalid', async () => { const activity = { type: 'notActionSubmit' }; @@ -663,7 +663,7 @@ describe('AdaptiveCards', () => { assert(typeof handler === 'function'); }); - it('should throw error if incomming activity is not valid', async () => { + it('should throw error if incoming activity is not valid', async () => { adaptiveCards.actionSubmit(testVerb, testHandler); const activity = { @@ -738,7 +738,7 @@ describe('AdaptiveCards', () => { adaptiveCards.search(datasetRegex, testHandler); }); - it('incomming activity is valid application/search type and should match regex', async () => { + it('incoming activity is valid application/search type and should match regex', async () => { const activity = { type: 'invoke', name: 'application/search', @@ -752,7 +752,7 @@ describe('AdaptiveCards', () => { assert((await selector(context)) == true); }); - it('incomming activity is valid application/search type and should not match regex ', async () => { + it('incoming activity is valid application/search type and should not match regex ', async () => { const activity = { type: 'invoke', name: 'application/search', @@ -766,7 +766,7 @@ describe('AdaptiveCards', () => { assert((await selector(context)) == false); }); - it('incomming activity is invalid', async () => { + it('incoming activity is invalid', async () => { const activity = { type: 'NotInvoke' }; @@ -829,7 +829,7 @@ describe('AdaptiveCards', () => { assert(typeof handler === 'function'); }); - it('should throw error if incomming activity is not valid', async () => { + it('should throw error if incoming activity is not valid', async () => { adaptiveCards.search(testDataset, testHandler); const activity = { diff --git a/js/packages/teams-ai/src/authentication/Authentication.spec.ts b/js/packages/teams-ai/src/authentication/Authentication.spec.ts index ee2431207..1a8c99eea 100644 --- a/js/packages/teams-ai/src/authentication/Authentication.spec.ts +++ b/js/packages/teams-ai/src/authentication/Authentication.spec.ts @@ -200,7 +200,7 @@ describe('Authentication', () => { assert.rejects( async () => await auth.signInUser(context, state), new AuthError( - 'Incomming activity is not a valid activity to initiate authentication flow.', + 'Incoming activity is not a valid activity to initiate authentication flow.', 'invalidActivity' ) ); diff --git a/js/packages/teams-ai/src/authentication/Authentication.ts b/js/packages/teams-ai/src/authentication/Authentication.ts index 462cc612f..573840d2f 100644 --- a/js/packages/teams-ai/src/authentication/Authentication.ts +++ b/js/packages/teams-ai/src/authentication/Authentication.ts @@ -102,7 +102,7 @@ export class Authentication { } throw new AuthError( - 'Incomming activity is not a valid activity to initiate authentication flow.', + 'Incoming activity is not a valid activity to initiate authentication flow.', 'invalidActivity' ); } diff --git a/js/packages/teams-ai/src/authentication/OAuthBotAuthentication.spec.ts b/js/packages/teams-ai/src/authentication/OAuthBotAuthentication.spec.ts index 9cfdb1095..4ffdd1755 100644 --- a/js/packages/teams-ai/src/authentication/OAuthBotAuthentication.spec.ts +++ b/js/packages/teams-ai/src/authentication/OAuthBotAuthentication.spec.ts @@ -111,7 +111,7 @@ describe('OAuthBotAuthentication', () => { }); describe('authenticate()', () => { - it('should save incomming message if not signed in yet', async () => { + it('should save incoming message if not signed in yet', async () => { const botAuth = new OAuthBotAuthentication(app, settings, settingName); const runDialogStub = sinon.stub(botAuth, 'runDialog');