Skip to content

Testing a simple express application(web server app) using Mocha framework

Notifications You must be signed in to change notification settings

patilankita79/TestingExpressApplicationUsingMocha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Testing Express Application Using Mocha

Testing a simple express application using Mocha framework


devDependencies

npm install supertest --save-dev
npm install expect@1.20.2 --save-dev

Running tests

In the project directory, run the following command

npm test

GET /users

Test case to assert my name exists in users array (Passing case)

GET /users, I have changed the name from Ankita to AnkitaPatil

Test case to assert my name exists in users array (Failing case)

About

Testing a simple express application(web server app) using Mocha framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published