File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/core/src/test/codewhisperer/commands Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments