@@ -11,7 +11,7 @@ describe('uploadFiles', () => {
1111 'src/Lighthouse/tests/testImages/testImage1.svg'
1212 )
1313 const fileName = path . split ( '/' ) . slice ( - 1 ) [ 0 ]
14- const deployResponse = ( await lighthouse . upload ( path , apiKey , false ) ) . data
14+ const deployResponse = ( await lighthouse . upload ( path , apiKey ) ) . data
1515
1616 expect ( deployResponse ) . toHaveProperty ( 'Name' )
1717 expect ( deployResponse ) . toHaveProperty ( 'Hash' )
@@ -24,11 +24,10 @@ describe('uploadFiles', () => {
2424
2525 it ( 'should upload folder to ipfs when correct path is provided' , async ( ) => {
2626 const path = resolve ( process . cwd ( ) , 'src/Lighthouse/tests/testImages' )
27- const full_deployResponse = ( await lighthouse . upload ( path , apiKey , true ) )
27+ const full_deployResponse = ( await lighthouse . upload ( path , apiKey ) )
2828 . data
2929
30- expect ( full_deployResponse . length ) . toBeGreaterThan ( 1 )
31- const deployResponse = full_deployResponse [ 0 ]
30+ const deployResponse = full_deployResponse
3231 expect ( deployResponse ) . toHaveProperty ( 'Name' )
3332 expect ( deployResponse ) . toHaveProperty ( 'Hash' )
3433 expect ( deployResponse ) . toHaveProperty ( 'Size' )
@@ -41,7 +40,7 @@ describe('uploadFiles', () => {
4140 it ( 'should not upload to ipfs when incorrect path is provided' , async ( ) => {
4241 try {
4342 const path = 'invalid/path/img.svg'
44- const deployResponse = await lighthouse . upload ( path , apiKey , false )
43+ const deployResponse = await lighthouse . upload ( path , apiKey )
4544 } catch ( error ) {
4645 expect ( error . code ) . toBe ( 'ENOENT' )
4746 }
0 commit comments