소스 검색

increasing coverage (by three lines)

El RIDO 8 년 전
부모
커밋
e51aa7c80f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;