-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Prevent timeout value from skirting limit check #3536
Commits on Oct 27, 2018
-
fix(runnable.js): Prevent timeout value from skirting limit check
Moved the timestring->value translation code to before the limit check. Updated the function documentation.
Configuration menu - View commit details
-
Copy full SHA for 64764f5 - Browse repository at this point
Copy the full SHA 64764f5View commit details -
fix(runnable.js): Something screwed up the function documentation
Put it back as originally typed
Configuration menu - View commit details
-
Copy full SHA for 2fac117 - Browse repository at this point
Copy the full SHA 2fac117View commit details -
docs(runnable.js): FU prettier
Prettier keeps rewriting my documentation **wrong**.
Configuration menu - View commit details
-
Copy full SHA for 96f5c18 - Browse repository at this point
Copy the full SHA 96f5c18View commit details
Commits on Nov 6, 2018
-
fix(lib/runnable.js): Fix timeout upper limit check (again)
Seems PR mochajs#1652 upper limit check was off by one. Fixed it and documentation.
Configuration menu - View commit details
-
Copy full SHA for 72f60d9 - Browse repository at this point
Copy the full SHA 72f60d9View commit details -
test(unit/runnable.spec.js): Updated tests for
#timeout(ms)
Restructured tests for normal, eq upper, exceeds upper limit checks given both numeric and timestamp input. No checking against lower limit.
Configuration menu - View commit details
-
Copy full SHA for 5d4ac5f - Browse repository at this point
Copy the full SHA 5d4ac5fView commit details
Commits on Nov 9, 2018
-
feat(lib/utils.js): Add
clamp
functionAdded function which clamps a numeric value to a range.
Configuration menu - View commit details
-
Copy full SHA for 20083cb - Browse repository at this point
Copy the full SHA 20083cbView commit details -
fix(lib/runnable.js): Fix timeout range issue for good
Found that previous "fix" hadn't actually fixed the correct value, as the wrong upper bound value had been used. Further checks indicated that IE had problems (surprise, surprise) with negative timeout values. New code clamps to nonnegative range ending at `INT_MAX`. Closes mochajs#1652
Configuration menu - View commit details
-
Copy full SHA for 0a88350 - Browse repository at this point
Copy the full SHA 0a88350View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0685cdc - Browse repository at this point
Copy the full SHA 0685cdcView commit details