File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
packages/amazonq/test/unit/codewhisperer/util Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -195,22 +195,5 @@ describe('zipUtil', function () {
195195
196196 await assert . rejects ( ( ) => zipUtil . generateZipTestGen ( appRoot , false ) , / Z i p f a i l e d / )
197197 } )
198-
199- it ( 'Should handle file copy to downloads folder error' , async function ( ) {
200- // Mock LSP client
201- sinon . stub ( LspClient , 'instance' ) . get ( ( ) => ( {
202- getRepoMapJSON : sinon . stub ( ) . resolves ( '{"mock": "data"}' ) ,
203- } ) )
204-
205- const mkdirSpy = sinon . spy ( fs , 'mkdir' )
206- sinon . stub ( fs , 'exists' ) . resolves ( true )
207- sinon . stub ( fs , 'copy' ) . rejects ( new Error ( 'Copy failed' ) )
208-
209- await assert . rejects ( ( ) => zipUtil . generateZipTestGen ( appRoot , false ) , / C o p y f a i l e d / )
210-
211- // Verify mkdir was called for all directories
212- assert ( mkdirSpy . called , 'mkdir should have been called' )
213- assert . strictEqual ( mkdirSpy . callCount , 4 , 'mkdir should have been called 4 times' )
214- } )
215198 } )
216199} )
You can’t perform that action at this time.
0 commit comments