From f42f191202394972dbf7c1f897024899242d7402 Mon Sep 17 00:00:00 2001 From: Roger Zhang Date: Fri, 29 Nov 2024 12:34:05 -1000 Subject: [PATCH] move to parent --- .../codewhisperer/commands/basicCommands.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/core/src/test/codewhisperer/commands/basicCommands.test.ts b/packages/core/src/test/codewhisperer/commands/basicCommands.test.ts index ac8a5e5969f..ee6aa81bbe0 100644 --- a/packages/core/src/test/codewhisperer/commands/basicCommands.test.ts +++ b/packages/core/src/test/codewhisperer/commands/basicCommands.test.ts @@ -88,6 +88,12 @@ describe('CodeWhisperer-basicCommands', function () { codeSuggestionsState = new TestCodeSuggestionsState() }) + after(async function () { + // disable auto scan after testrun + await CodeScansState.instance.setScansEnabled(false) + assert.strictEqual(CodeScansState.instance.isScansEnabled(), false) + }) + it('has suggestions enabled by default', async function () { targetCommand = testCommand(toggleCodeSuggestions, codeSuggestionsState) assert.strictEqual(codeSuggestionsState.isSuggestionsEnabled(), true) @@ -495,12 +501,6 @@ describe('CodeWhisperer-basicCommands', function () { sandbox.restore() }) - after(async function () { - // disable auto scan after testrun - await CodeScansState.instance.setScansEnabled(false) - assert.strictEqual(CodeScansState.instance.isScansEnabled(), false) - }) - it('should call applySecurityFix command successfully', async function () { const fileName = 'sample.py' const textDocumentMock = createMockDocument('first line\n second line\n fourth line', fileName)