File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ describe('REST - Form upload', () => {
319319 } )
320320
321321 describe ( 'upload file' , ( ) => {
322- it ( 'should show error when file size exceedes the permit' , async ( done ) => {
322+ it ( 'should show error when file size exceedes the permit' , async ( ) => {
323323 const form = new FormData ( )
324324 form . append ( 'file' , fs . createReadStream ( testFile ) )
325325
@@ -328,10 +328,9 @@ describe('REST - Form upload', () => {
328328 } catch ( error ) {
329329 error . message . should . eql ( 'Request body larger than maxBodyLength limit' )
330330 }
331- done ( ) ;
332331 } )
333332
334- it ( 'should not show error when file size doesnt exceedes the permit' , async ( done ) => {
333+ it ( 'should not show error when file size doesnt exceedes the permit' , async ( ) => {
335334 const form = new FormData ( )
336335 form . append ( 'file' , fs . createReadStream ( testFile ) )
337336
@@ -341,7 +340,6 @@ describe('REST - Form upload', () => {
341340 } catch ( error ) {
342341 console . log ( error . message )
343342 }
344- done ( ) ;
345343 } )
346344 } )
347345} )
You can’t perform that action at this time.
0 commit comments