Skip to content

Demo chai with callback, promise resolve and reject

Notifications You must be signed in to change notification settings

TechMaster/demo-chai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo Chai - Should BBD Testing

  1. Test old call back function
  2. Test Promise resolve
  3. Test Promise reject

How to run

git clone https://github.com/TechMaster/demo-chai.git
cd demo-chai
npm install
npm test

Look into folder test you will see:

  1. 01_math.js test with thrown error
  2. 02_user.js tests again db/users.js with promise resolve and reject outcome

About

Demo chai with callback, promise resolve and reject

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published