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
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
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;
}
);