-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: use promises-es6-tests for additional promise tests #265
Conversation
This passes for me on the command line, but it'd be nice to have a way to also test it in |
I will look into that; I only tested from command line and didn't think [edited to remove email cruft] |
Note that the tests are actually run in browser two different ways: once
|
"promises-aplus-tests": "~2.0.4", | ||
"promises-es6-tests": "^0.1.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh also - please don't (ever) use the carat, since it breaks older nodes. Stick with the ~
for maximum compatibility :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm did that, but I have changed it. npm install --save apparently uses "^" since early 2014.
Added a Still passes on command line. No longer uses caret in package.json. |
@smikes continues to be a test-suite rockstar! |
I checked this PR out, |
Thanks. Packaging error. I have corrected the npm package (0.3.2 contains bundle/promises-es6-tests.js) and updated the version requirement in package.json. I missed this because I was using |
The CI failure is: Collections Set has an iterator that works with Array.from works with the full set: I don't see how that's related to the change I just pushed. Any ideas? |
Yes, that seems to be a flaky test. I've opened #268 to track that. |
test: use promises-es6-tests for additional promise tests
The promises-es6-tests suite is a spin off of work that I did for @getify 's getify/native-promises-only module.
Eventually the goal with the tests is to convert them to Test262 format and submit them for review and inclusion in Test262 for ECMAScript.
At present they are a set of tests in mocha, using a style and runner very similar to promises-aplus (in fact, stolen from promises-aplus/promises-tests ), but covering ES6-draft-specified features such as Promise.all, Promise.race, etc.
es6-shim promises pass all the tests currently in promises-es6-tests.
/cc @ljharb