Skip to content

Commit

Permalink
move to parent
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-zhangg committed Nov 29, 2024
1 parent df7b30f commit f42f191
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f42f191

Please sign in to comment.