A thorough set of unit tests have been created for you. Now you just need to make them pass!
git clone https://github.com/jason-whitted/tdl-syncpromise
cd tdl-syncpromise
npm install
You will be working in the src/SyncPromise.js
file. This should be the ONLY file you need to change.
Utilize documentation and unit tests to help you create a synchronous promise object.
Read the docs! You don't have to fully comprehend it initially, but it is good to get familiar with the documentation.
npm run test
npm run test:min
npm run test:cov
npm run test
- Displays complete unit test report.
npm run test:min
- Displays minimal unit test report.
- Only displays the first unit test error.
npm run test:cov
- Generates code coverage.
- When you are finished you can run it and take a look at
coverage/lcov-report/index.html
.