Skip to content

Commit

Permalink
Fix linting warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland Warmerdam committed Apr 13, 2016
1 parent 8e235cc commit a59ebb2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
var LoadGruntTasks = require('load-grunt-tasks');
var loadGruntTasks = require('load-grunt-tasks');


module.exports = function (grunt) {
Expand All @@ -15,7 +15,7 @@ module.exports = function (grunt) {
}
});

LoadGruntTasks(grunt);
loadGruntTasks(grunt);
grunt.registerTask('test', ['nodeunit', 'eslint']);
grunt.registerTask('default', 'test');
};
6 changes: 5 additions & 1 deletion tasks/mochacli.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ module.exports = function (grunt) {
if (options.files.length === 0 &&
// Check for files matched by filesRaw or the mocha default
grunt.file.expand(options.filesRaw || 'test/*.js').length === 0) {
return done();

done();
return;
}

mocha(options, function (error) {
done(options.force ? true : error);
});

return;
});
};
3 changes: 1 addition & 2 deletions test/fixture/pass.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
'use strict';

describe('fixture', function () {
it('pass', function () {
});
it('pass', function () {}); // eslint-disable-line no-empty-function
});
3 changes: 1 addition & 2 deletions test/fixture/pass2.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
'use strict';

describe('fixture', function () {
it('pass', function () {
});
it('pass', function () {}); // eslint-disable-line no-empty-function
});

0 comments on commit a59ebb2

Please sign in to comment.