Commit e232674d by Nick Schonning Committed by Michael Mifsud

Replace TODO URL with release tab for supported versions (#1488)

parent a4054009
......@@ -2,7 +2,8 @@
* node-sass: lib/errors.js
*/
var sass = require('./extensions');
var sass = require('./extensions'),
pkg = require('../package.json');
function humanEnvironment() {
return sass.getHumanEnvironment(sass.getBinaryName());
......@@ -32,7 +33,7 @@ module.exports.unsupportedEnvironment = function() {
return [
'Node Sass does not yet support your current environment: ' + humanEnvironment(),
'For more information on which environments are supported please see:',
'TODO URL'
'https://github.com/sass/node-sass/releases/tag/v' + pkg.version
].join('\n');
};
......
......@@ -34,7 +34,7 @@ describe('binary errors', function() {
it('links to supported environment documentation', function() {
var message = errors.unsupportedEnvironment();
assert.ok(message.indexOf('TODO URL') !== -1);
assert.ok(message.indexOf('https://github.com/sass/node-sass/releases/tag/v') !== -1);
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment