@@ -79,7 +79,7 @@ describe("Configuration Handling", () => {
7979 return config [ key ]
8080 } )
8181
82- await activate ( mockContext )
82+ activate ( mockContext )
8383 await vscode . commands . executeCommand ( "diffCommit.generateCommitMessage" )
8484
8585 expect ( configGetMock ) . toHaveBeenCalledWith ( "model" )
@@ -92,7 +92,7 @@ describe("Configuration Handling", () => {
9292 test ( "should use default values when configuration is missing" , async ( ) => {
9393 configGetMock . mockReturnValue ( undefined )
9494
95- await activate ( mockContext )
95+ activate ( mockContext )
9696 await vscode . commands . executeCommand ( "diffCommit.generateCommitMessage" )
9797
9898 expect ( configGetMock ) . toHaveBeenCalled ( )
@@ -106,7 +106,7 @@ describe("Configuration Handling", () => {
106106 return undefined
107107 } )
108108
109- await activate ( mockContext )
109+ activate ( mockContext )
110110 await vscode . commands . executeCommand ( "diffCommit.generateCommitMessage" )
111111
112112 expect ( configGetMock ) . toHaveBeenCalledWith ( "customInstructions" )
@@ -115,7 +115,7 @@ describe("Configuration Handling", () => {
115115 test ( "should handle missing workspace folder" , async ( ) => {
116116 ; ( vscode . workspace . workspaceFolders as any ) = undefined
117117
118- await activate ( mockContext )
118+ activate ( mockContext )
119119 await vscode . commands . executeCommand ( "diffCommit.generateCommitMessage" )
120120
121121 expect ( vscode . window . showErrorMessage ) . toHaveBeenCalledWith ( "No workspace folder found" )
@@ -124,7 +124,7 @@ describe("Configuration Handling", () => {
124124 test ( "should handle missing Git extension" , async ( ) => {
125125 ; ( vscode . extensions . getExtension as jest . Mock ) . mockReturnValue ( undefined )
126126
127- await activate ( mockContext )
127+ activate ( mockContext )
128128 await vscode . commands . executeCommand ( "diffCommit.generateCommitMessage" )
129129
130130 expect ( vscode . window . showErrorMessage ) . toHaveBeenCalledWith ( "Git extension not found" )
@@ -146,7 +146,7 @@ describe("Configuration Handling", () => {
146146 return undefined
147147 } )
148148
149- await activate ( mockContext )
149+ activate ( mockContext )
150150 await vscode . commands . executeCommand ( "diffCommit.generateCommitMessage" )
151151
152152 expect ( vscode . window . showErrorMessage ) . toHaveBeenCalledWith ( "No Git repository found" )
@@ -178,7 +178,7 @@ describe("Configuration Handling", () => {
178178 return undefined
179179 } )
180180
181- await activate ( mockContext )
181+ activate ( mockContext )
182182 await vscode . commands . executeCommand ( "diffCommit.generateCommitMessage" )
183183
184184 expect ( vscode . window . showErrorMessage ) . toHaveBeenCalledWith ( "No changes detected" )
0 commit comments