Notes Used to Craft
Next lets take a look at some assertions when it comes to asynchronous code and promises.
node ace make:test async --suite=unit
Join Adocasts Plus for $8/mo, or sign into an existing Adocasts Plus account, to get access to all of our lessons.
We'll cover testing asynchronous code in AdonisJS using Japa. Learn to assert successful promises with both async/await and promise chaining. We'll then discuss testing rejected promises and what to watch for to prevent false positives.
Next lets take a look at some assertions when it comes to asynchronous code and promises.
node ace make:test async --suite=unit
Be the first to comment!