Skip to content

Commit f42f191

Browse files
committed
move to parent
1 parent df7b30f commit f42f191

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/core/src/test/codewhisperer/commands/basicCommands.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ describe('CodeWhisperer-basicCommands', function () {
8888
codeSuggestionsState = new TestCodeSuggestionsState()
8989
})
9090

91+
after(async function () {
92+
// disable auto scan after testrun
93+
await CodeScansState.instance.setScansEnabled(false)
94+
assert.strictEqual(CodeScansState.instance.isScansEnabled(), false)
95+
})
96+
9197
it('has suggestions enabled by default', async function () {
9298
targetCommand = testCommand(toggleCodeSuggestions, codeSuggestionsState)
9399
assert.strictEqual(codeSuggestionsState.isSuggestionsEnabled(), true)
@@ -495,12 +501,6 @@ describe('CodeWhisperer-basicCommands', function () {
495501
sandbox.restore()
496502
})
497503

498-
after(async function () {
499-
// disable auto scan after testrun
500-
await CodeScansState.instance.setScansEnabled(false)
501-
assert.strictEqual(CodeScansState.instance.isScansEnabled(), false)
502-
})
503-
504504
it('should call applySecurityFix command successfully', async function () {
505505
const fileName = 'sample.py'
506506
const textDocumentMock = createMockDocument('first line\n second line\n fourth line', fileName)

0 commit comments

Comments
 (0)