increasing coverage (by three lines)

This commit is contained in:
El RIDO 2017-11-13 20:44:11 +01:00
parent 9af4a4e2f5
commit e51aa7c80f
No known key found for this signature in database
GPG Key ID: 0F5C940A6BD81F92
1 changed files with 1 additions and 1 deletions

View File

@ -1154,7 +1154,7 @@ describe('Alert', function () {
$.PrivateBin.Alert.init(); $.PrivateBin.Alert.init();
$.PrivateBin.Alert.setCustomHandler(function(id, $element) { $.PrivateBin.Alert.setCustomHandler(function(id, $element) {
handlerCalled = true; handlerCalled = true;
return true; return jsc.random(0, 1) ? true : $element;
}); });
functions[trigger](message); functions[trigger](message);
return handlerCalled; return handlerCalled;