Improved specs/promise.js unit tests
Moving unit tests to mocha