diff --git a/exercises/am_i_ready/exercise.js b/exercises/am_i_ready/exercise.js index 79244a7..c6c49c2 100644 --- a/exercises/am_i_ready/exercise.js +++ b/exercises/am_i_ready/exercise.js @@ -87,7 +87,7 @@ function checkNode (pass, callback) { return callback(null, false) } - if (!semver.satisfies(process.versions.node, '~' + MIN_NODE_VERSION)) { + if (semver.gt(process.versions.node, MAX_NODE_VERSION)) { exercise.emit('fail', '`' + chalk.bold('node') @@ -101,6 +101,9 @@ function checkNode (pass, callback) { return callback(null, false) } + exercise.emit('pass', 'Found usable `' + chalk.bold('node') + '` version: ' + + chalk.bold('v' + process.versions.node)) + callback(null, true) } diff --git a/exercises/am_i_ready/vars.json b/exercises/am_i_ready/vars.json index ea027fc..d31a5d3 100644 --- a/exercises/am_i_ready/vars.json +++ b/exercises/am_i_ready/vars.json @@ -2,7 +2,7 @@ "versions" : { "node": { "min": "0.10.14", - "max": "0.10.x" + "max": "0.13.0" }, "gcc" : "4.4.0", "llvm" : "4.2",