Skip to content

Files

Latest commit

6cd0346 · Apr 28, 2021

History

History

express-rest-api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 19, 2020
Oct 27, 2019
Oct 27, 2019
Oct 27, 2019
Apr 28, 2021

Express REST API example

This example demonstrates how you can create tests on an Express application using Mocha.js. Express is used to create a server and supertest is used for HTTP assertions inside the Mocha test runner.

Commands

  • No config file is needed for Mocha as the app uses default values
  • npm test - run the mocha test code