mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-24 23:35:26 -04:00
avoid instability of tests due to Alert callback testing, which can prevent notifications from getting displayed
This commit is contained in:
parent
603f7fd911
commit
d9f27fb004
4 changed files with 5 additions and 4 deletions
|
@ -218,6 +218,7 @@ describe('Alert', function () {
|
|||
return jsc.random(0, 1) ? true : $element;
|
||||
});
|
||||
functions[trigger](message);
|
||||
$.PrivateBin.Alert.setCustomHandler(null);
|
||||
return handlerCalled;
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue