From 92f8aaf704fd6571348df471828b734aab2fff70 Mon Sep 17 00:00:00 2001 From: Greg Perkins Date: Sat, 2 Feb 2013 10:13:46 -0800 Subject: [PATCH] 0.0.2: Allow grunt 0.4.0rc5+ * devDependency still pegged, since grunt-contrib-nodeunit is stuck --- package.json | 2 +- tasks/mocha-hack.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 602a068..725c4c0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "grunt-mocha-hack", "description": "A hacky wrapper to run node.js lib Mocha tests via grunt.", - "version": "0.0.1", + "version": "0.0.2", "homepage": "https://github.com/gregrperkins/grunt-mocha-hack", "forkedFrom": "http://github.com/yaymukund/grunt-simple-mocha", diff --git a/tasks/mocha-hack.js b/tasks/mocha-hack.js index 86bafdf..8884c91 100644 --- a/tasks/mocha-hack.js +++ b/tasks/mocha-hack.js @@ -8,8 +8,9 @@ var mochaReporterBase = require('mocha/lib/reporters/base'); module.exports = function(grunt) { grunt.registerMultiTask('mocha-hack', 'Run tests with mocha', function() { + // TODO(gregp): remove this.file.src once 0.4.0rc4 and earlier deprecate + var paths = (this.filesSrc || this.file.src).map(path.resolve); // Retrieve options from the grunt task. - var paths = this.file.src.map(path.resolve); var options = this.options(); var gruntDone = this.async();