See also Promises/A+.
You can test your implementation with the Promises/A+ Compliance Test Suite CLI tool. To install the tool, run:
npm install -g promises-aplus-tests
Then, run the tool with your implementation as the first argument:
promises-aplus-tests ./your-implementation.js