cmakara

  • Testing errors in async functions with Chai

    Testing errors in async code which uses promises with Chai can be a bit of a hassle, but it becomes very easy with a plugin called chai-as-promised. See the example below.

    January 16, 2018 - 2 minute read - testautomation chai javascript

Customized by Csaba Makara
Based on Chalk by Nielsen Ramon