A toy implementation of (an approximation of) the ECMAScript 6 promise API, for educational purposes:
spec/demo_promise_spec.js
contains usage examples.- The following blog post explains how it works: โECMAScript 6 promises (2/2): the APIโ
Installing Babel and Jest:
cd demo_promise/
npm install
Running the tests:
npm test