-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
npm test fails on Node 12 #767
Comments
This function used to give a different order depending on the behavior of Array.prototype.sort(), which led to a test failure on Node.js 12 (see apache#767). This update gives a consistent sort order, regardless of the JavaScript engine implementation, now succeeds on Node.js versions 6, 8, 10, and 12. Resolves apache#767 For reference: - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort
The explanation is that the following lines will lead to different results depending on what order I just raised PR #779 which gives consistent order on Node.js versions 6, 8, 10, and 12. Thanks to @breautek for reporting this one. |
This function used to give a different order depending on the behavior of Array.prototype.sort(), which led to a test failure on Node.js 12 (see #767). This update gives a consistent sort order, regardless of the JavaScript engine implementation, now succeeds on Node.js versions 6, 8, 10, and 12. Resolves #767 For reference: - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort
Bug Report
Problem
running
npm test
currently has 1 test failling.What is expected to happen?
What does actually happen?
Information
This currently only happens when running Node 12. Running Node 10 works ok.
Command or Code
npm test
Environment, Platform, Device & Versions
Node 12.4.0
Node 12.6.0
Linux Ubuntu 18.04
cordova-android@8.1.0-dev (master at the time of writing)
9.0.0 (cordova-lib@9.0.1)
Checklist
The text was updated successfully, but these errors were encountered: