File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/amazonq/test/unit/codewhisperer/commands Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,15 @@ import { globals } from 'aws-core-vscode/shared'
1818import { extensionVersion } from 'aws-core-vscode/shared'
1919
2020describe ( 'onInlineAcceptance' , function ( ) {
21- const session = CodeWhispererSessionState . instance . getSession ( )
2221 describe ( 'onInlineAcceptance' , function ( ) {
2322 beforeEach ( async function ( ) {
23+ const session = CodeWhispererSessionState . instance . getSession ( )
2424 await resetCodeWhispererGlobalVariables ( )
2525 session . reset ( )
2626 } )
2727
2828 afterEach ( function ( ) {
29+ const session = CodeWhispererSessionState . instance . getSession ( )
2930 sinon . restore ( )
3031 session . reset ( )
3132 } )
@@ -50,6 +51,7 @@ describe('onInlineAcceptance', function () {
5051 } )
5152
5253 it ( 'Should report telemetry that records this user decision event' , async function ( ) {
54+ const session = CodeWhispererSessionState . instance . getSession ( )
5355 await globals . globalState . update ( 'CODEWHISPERER_USER_GROUP' , {
5456 version : extensionVersion ,
5557 } )
You can’t perform that action at this time.
0 commit comments