Skip to content

Commit 89f6f3c

Browse files
author
Cookiezaurs
committed
fx
1 parent 9e01e2f commit 89f6f3c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

plugins/star-rating/tests.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)