Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JhontSouth committed Nov 8, 2023
1 parent 9df6df1 commit 2876416
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions libraries/botbuilder/src/setSpeakMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class SetSpeakMiddleware implements Middleware {
* @param voiceName The SSML voice name attribute value.
* @param fallbackToTextForSpeak true if an empty Activity.Speak is populated with Activity.Text.
*/
constructor(private readonly voiceName: string | null, private readonly fallbackToTextForSpeak: boolean) { }
constructor(private readonly voiceName: string | null, private readonly fallbackToTextForSpeak: boolean) {}

/**
* Processes an incoming activity.
Expand Down Expand Up @@ -73,8 +73,9 @@ export class SetSpeakMiddleware implements Middleware {
activity.speak = `<voice name='${this.voiceName}'>${activity.speak}</voice>`;
}

activity.speak = `<speak version='1.0' xmlns='http://www.w3.org/2001/10/synthesis' xml:lang='${activity.locale ?? 'en-US'
}'>${activity.speak}</speak>`;
activity.speak = `<speak version='1.0' xmlns='http://www.w3.org/2001/10/synthesis' xml:lang='${
activity.locale ?? 'en-US'
}'>${activity.speak}</speak>`;
}
}
})
Expand Down
4 changes: 2 additions & 2 deletions libraries/botbuilder/tests/cloudAdapter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('CloudAdapter', function () {
return this.configuration;
}

set(_path, _val) { }
set(_path, _val) {}
}

const activity = { type: ActivityTypes.Invoke, value: 'invoke' };
Expand Down Expand Up @@ -128,7 +128,7 @@ describe('CloudAdapter', function () {
mock.verify();
});

it.skip('throws exception on expired token', async function () {
it('throws exception on expired token', async function () {
const consoleStub = sandbox.stub(console, 'error');

// Expired token with removed AppID
Expand Down

0 comments on commit 2876416

Please sign in to comment.