From 7bcfd4b8110e9cba89edebaa24ab06ab9ba9a223 Mon Sep 17 00:00:00 2001 From: Joel Mut Date: Mon, 28 Oct 2024 14:07:10 -0300 Subject: [PATCH] Fix ESLint issues --- .../src/httpRequestMocks/httpResponseMock.ts | 29 +++++++++++++++---- .../tests/adaptiveDialog.test.js | 2 +- .../tests/selector.test.js | 2 +- 3 files changed, 26 insertions(+), 7 deletions(-) diff --git a/libraries/botbuilder-dialogs-adaptive-testing/src/httpRequestMocks/httpResponseMock.ts b/libraries/botbuilder-dialogs-adaptive-testing/src/httpRequestMocks/httpResponseMock.ts index 647d2fc411..91d58c3a18 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/src/httpRequestMocks/httpResponseMock.ts +++ b/libraries/botbuilder-dialogs-adaptive-testing/src/httpRequestMocks/httpResponseMock.ts @@ -27,18 +27,13 @@ export enum ResponseStatusCode { NoContent = 204, ResetContent = 205, PartialContent = 206, - Ambiguous = 300, MultipleChoices = 300, - Moved = 301, MovedPermanently = 301, Found = 302, - Redirect = 302, - RedirectMethod = 303, SeeOther = 303, NotModified = 304, UseProxy = 305, Unused = 306, - RedirectKeepVerb = 307, TemporaryRedirect = 307, BadRequest = 400, Unauthorized = 401, @@ -65,6 +60,30 @@ export enum ResponseStatusCode { ServiceUnavailable = 503, GatewayTimeout = 504, HttpVersionNotSupported = 505, + + // Synonyms + /* eslint-disable @typescript-eslint/no-duplicate-enum-values */ + /** + * Synonym for MultipleChoices. + */ + Ambiguous = 300, + /** + * Synonym for MovedPermanently. + */ + Moved = 301, + /** + * Synonym for Found. + */ + Redirect = 302, + /** + * Synonym for SeeOther. + */ + RedirectMethod = 303, + /** + * Synonym for TemporaryRedirect. + */ + RedirectKeepVerb = 307, + /* eslint-enable @typescript-eslint/no-duplicate-enum-values */ } /** diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/adaptiveDialog.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/adaptiveDialog.test.js index 2636a5540a..d1f28050c5 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/adaptiveDialog.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/adaptiveDialog.test.js @@ -104,7 +104,7 @@ describe('AdaptiveDialogTests', function () { await TestUtils.runTestScript(resourceExplorer, 'AdaptiveDialog_NestedRecognizers'); }); - it('PropertySetInInterruption', async function () { + it('PropertyBotInterruption', async function () { await TestUtils.runTestScript(resourceExplorer, 'AdaptiveDialog_ParentBotInterruption'); }); diff --git a/libraries/botbuilder-dialogs-adaptive-testing/tests/selector.test.js b/libraries/botbuilder-dialogs-adaptive-testing/tests/selector.test.js index ce13d2c8e1..b1bd095129 100644 --- a/libraries/botbuilder-dialogs-adaptive-testing/tests/selector.test.js +++ b/libraries/botbuilder-dialogs-adaptive-testing/tests/selector.test.js @@ -28,7 +28,7 @@ describe('SelectorTests', function () { await TestUtils.runTestScript(resourceExplorer, 'SelectorTests_Priority'); }); - it('Priority', async function () { + it('FloatPriority', async function () { await TestUtils.runTestScript(resourceExplorer, 'SelectorTests_Float_Priority'); });