Tue.Jun 12, 2018

Remove directory
article thumbnail

Testing a Koa application with supertest using async/await

Marcusoft

Create a new directory, I called mine koasupertestasync. Enter the directory and set up a package.json file using npm init -y. To do this we will have to await the call to mongo using monk, then do the request using supertest and finally use supertests own asseration features to ensure that we get back what we expected.

Testing 49