File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -424,7 +424,20 @@ describe('Testing Rating plugin', function() {
424424 }
425425 var ob = JSON . parse ( res . text ) ;
426426 ob . should . have . property ( 'result' , 'Success' ) ;
427- setTimeout ( done , 10 * testUtils . testScalingFactor ) ;
427+ //giving morre time to remove widget
428+ setTimeout ( done , 10 * testUtils . testScalingFactor + 2000 ) ;
429+ } ) ;
430+ } ) ;
431+ it ( 'should not find widget in database' , function ( done ) {
432+ request . get ( '/o/feedback/widget?app_id=' + APP_ID + '&api_key=' + API_KEY_ADMIN + '&widget_id=' + WIDGET_ID )
433+ . expect ( 404 )
434+ . end ( function ( err , res ) {
435+ if ( err ) {
436+ return done ( err ) ;
437+ }
438+ var ob = JSON . parse ( res . text ) ;
439+ ob . should . have . property ( 'result' , 'Widget not found.' ) ;
440+ done ( ) ;
428441 } ) ;
429442 } ) ;
430443 } ) ;
You can’t perform that action at this time.
0 commit comments