avoid instability of tests due to Alert callback testing, which can prevent notifications from getting displayed

This commit is contained in:
El RIDO
2019-06-23 09:39:21 +02:00
parent 603f7fd911
commit d9f27fb004
4 changed files with 5 additions and 4 deletions

View File

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