Explorar o código

increasing coverage (by three lines)

El RIDO %!s(int64=8) %!d(string=hai) anos
pai
achega
e51aa7c80f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      js/test.js

+ 1 - 1
js/test.js

@@ -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;