Skip to content

Commit

Permalink
Adding 10 as radix to parseInt
Browse files Browse the repository at this point in the history
  • Loading branch information
step2yeung committed Nov 14, 2019
1 parent 0bdc02d commit fe08c5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const command = [
'--split',
'3',
'--parallel',
'1',
'--random',
process.env.TRAVIS_PULL_REQUEST
].filter(Boolean).join(' ');
Expand Down
4 changes: 2 additions & 2 deletions lib/utils/tests-options-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ module.exports = class TestsOptionsValidator {
* @return {boolean}
*/
validateParallel() {
const parallelValue = parseInt(this.options.parallel);
if (Number.isNan(parallelValue)) {
const parallelValue = parseInt(this.options.parallel, 10);
if (isNaN(parallelValue)) {
throw new SilentError(
`EmberExam: You must specify a Numeric value to 'parallel'. Value passed: ${this.options.parallel}`
);
Expand Down

0 comments on commit fe08c5a

Please sign in to comment.