diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..cb9d99bb --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.handlebars text eol=lf diff --git a/tasks/test.js b/tasks/test.js index 803fef9f..88ae525e 100644 --- a/tasks/test.js +++ b/tasks/test.js @@ -33,7 +33,7 @@ module.exports = function(grunt) { grunt.registerTask('test:cov', function() { var done = this.async(); - var runner = childProcess.fork('node_modules/.bin/istanbul', ['cover', '--source-map', '--', './spec/env/runner.js'], {stdio: 'inherit'}); + var runner = childProcess.fork('node_modules/istanbul/lib/cli.js', ['cover', '--source-map', '--', './spec/env/runner.js'], {stdio: 'inherit'}); runner.on('close', function(code) { if (code != 0) { grunt.fatal(code + ' tests failed'); @@ -56,7 +56,7 @@ module.exports = function(grunt) { grunt.registerTask('test:check-cov', function() { var done = this.async(); - var runner = childProcess.fork('node_modules/.bin/istanbul', ['check-coverage', '--statements', '100', '--functions', '100', '--branches', '100', '--lines 100'], {stdio: 'inherit'}); + var runner = childProcess.fork('node_modules/istanbul/lib/cli.js', ['check-coverage', '--statements', '100', '--functions', '100', '--branches', '100', '--lines 100'], {stdio: 'inherit'}); runner.on('close', function(code) { if (code != 0) { grunt.fatal('Coverage check failed: ' + code);