mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
increasing coverage (by three lines)
This commit is contained in:
parent
9af4a4e2f5
commit
e51aa7c80f
|
@ -1154,7 +1154,7 @@ describe('Alert', function () {
|
|||
$.PrivateBin.Alert.init();
|
||||
$.PrivateBin.Alert.setCustomHandler(function(id, $element) {
|
||||
handlerCalled = true;
|
||||
return true;
|
||||
return jsc.random(0, 1) ? true : $element;
|
||||
});
|
||||
functions[trigger](message);
|
||||
return handlerCalled;
|
||||
|
|
Loading…
Reference in New Issue
Block a user