Created
October 30, 2021 14:06
-
-
Save corocoto/a58a5e8d8c7f7bd1e8cc5770f29a5d3d to your computer and use it in GitHub Desktop.
strict test checking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Добавляет большей строгости при прогонке тестов. | |
* Если в .then или .catch проверка вернула ложный реузльтат, тогда тест упадет. | |
* | |
* Раньше текст проходили в блоках then и catch, даже если они падали. | |
* */ | |
process.on('unhandledRejection', (error) => { | |
fail(error); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment