Promise.js
使用promises-aplus-tests进行PromiseA+的测试,在对应文件目录使用npx promises-aplus-tests index.js即可。
promises-aplus-tests
npx promises-aplus-tests index.js
segmentfault|手写一个Promise/A+,完美通过官方872个测试用例