Skip to content

Commit

Permalink
fix max-node-version check
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jan 31, 2016
1 parent e6ad576 commit a4dfaf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exercises/am_i_ready/exercise.js
Expand Up @@ -87,7 +87,7 @@ function checkNode (pass, callback) {
return callback(null, false)
}

if (semver.gt(process.versions.node, MAX_NODE_VERSION)) {
if (!semver.satisfies(process.versions.node, '<=' + MAX_NODE_VERSION)) {
exercise.emit('fail',
'`'
+ chalk.bold('node')
Expand Down
2 changes: 1 addition & 1 deletion exercises/am_i_ready/vars.json
Expand Up @@ -2,7 +2,7 @@
"versions" : {
"node": {
"min": "0.10.41",
"max": "7.0.0"
"max": "6.x"
},
"gcc" : "4.4.0",
"llvm" : "4.2",
Expand Down

0 comments on commit a4dfaf3

Please sign in to comment.