Skip to content

Commit

Permalink
Updating devDeps and fixing jscs notices
Browse files Browse the repository at this point in the history
  • Loading branch information
shama committed Nov 24, 2015
1 parent 031a5a8 commit 6a67ac7
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion internal-tasks/bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ module.exports = function(grunt) {
grunt.verbose.writeln('Not actually running: ' + cmd);
} else {
grunt.verbose.writeln('Running: ' + cmd);
var result = shell.exec(cmd, {silent:true});
var result = shell.exec(cmd, {silent: true});
if (result.code !== 0) {
grunt.log.error('Error (' + result.code + ') ' + result.output);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/grunt.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,5 @@ grunt.tasks = function(tasks, options, done) {
tasks.forEach(function(name) { task.run(name); });
// Run tasks async internally to reduce call-stack, per:
// https://github.com/gruntjs/grunt/pull/1026
task.start({asyncDone:true});
task.start({asyncDone: true});
};
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@
},
"devDependencies": {
"difflet": "~0.2.3",
"grunt-contrib-jshint": "~0.6.4",
"grunt-contrib-jshint": "~0.11.3",
"grunt-contrib-nodeunit": "~0.4.1",
"grunt-contrib-watch": "~0.5.3",
"grunt-jscs": "~1.5.0",
"grunt-contrib-watch": "~0.6.1",
"grunt-jscs": "~2.3.0",
"semver": "2.1.0",
"shelljs": "~0.2.5",
"shelljs": "~0.5.3",
"temporary": "~0.0.4"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion test/grunt/cli_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function getOptionValues(str) {
return matches ? JSON.parse(matches[1]) : {};
}

exports['cli'] = {
exports.cli = {
'--debug taskname': function(test) {
test.expect(1);
grunt.util.spawn({
Expand Down
2 changes: 1 addition & 1 deletion test/grunt/config_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var grunt = require('../../lib/grunt');

exports['config'] = {
exports.config = {
setUp: function(done) {
this.origData = grunt.config.data;
grunt.config.init({
Expand Down
2 changes: 1 addition & 1 deletion test/grunt/event_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var grunt = require('../../lib/grunt');

exports['event'] = function(test) {
exports.event = function(test) {
test.expect(3);
grunt.event.on('test.foo', function(a, b, c) {
// This should get executed once (emit test.foo).
Expand Down
4 changes: 2 additions & 2 deletions test/grunt/file_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ var compareFiles = function(filepath1, filepath2) {
return compareBuffers(fs.readFileSync(filepath1), fs.readFileSync(filepath2));
};

exports['file'] = {
exports.file = {
setUp: function(done) {
this.defaultEncoding = grunt.file.defaultEncoding;
grunt.file.defaultEncoding = 'utf8';
Expand Down Expand Up @@ -665,7 +665,7 @@ exports['file'] = {
test.equal(grunt.file.delete(path.join(outsidecwd, 'test.js')), false, 'should not delete anything outside the cwd.');
test.ok(this.warnCount, 'should issue a warning when deleting outside working directory');

test.ok(grunt.file.delete(path.join(outsidecwd), {force:true}), 'should delete outside cwd when using the --force.');
test.ok(grunt.file.delete(path.join(outsidecwd), {force: true}), 'should delete outside cwd when using the --force.');
test.equal(grunt.file.exists(outsidecwd), false, 'file outside cwd should have been deleted when using the --force.');

grunt.file.setBase(oldBase);
Expand Down
8 changes: 4 additions & 4 deletions test/grunt/option_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var grunt = require('../../lib/grunt');

exports['option'] = {
exports.option = {
setUp: function(done) {
grunt.option.init();
done();
Expand All @@ -13,15 +13,15 @@ exports['option'] = {
},
'option.init': function(test) {
test.expect(1);
var expected = {foo:'bar', bool:true, 'bar':{foo:'bar'}};
var expected = {foo: 'bar', bool: true, 'bar': {foo: 'bar'}};
test.deepEqual(grunt.option.init(expected), expected);
test.done();
},
'option': function(test) {
test.expect(4);
test.equal(grunt.option('foo', 'bar'), grunt.option('foo'));
grunt.option('foo', {foo:'bar'});
test.deepEqual(grunt.option('foo'), {foo:'bar'});
grunt.option('foo', {foo: 'bar'});
test.deepEqual(grunt.option('foo'), {foo: 'bar'});
test.equal(grunt.option('no-there'), false);
grunt.option('there', false);
test.equal(grunt.option('no-there'), true);
Expand Down
2 changes: 1 addition & 1 deletion test/grunt/template_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var grunt = require('../../lib/grunt');

exports['template'] = {
exports.template = {
'process': function(test) {
test.expect(4);
var obj = {
Expand Down
2 changes: 1 addition & 1 deletion test/util/task_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ exports['new Task'] = {
}
};

exports['Tasks'] = {
exports.Tasks = {
setUp: function(done) {
result.reset();
this.task = requireTask().create();
Expand Down

0 comments on commit 6a67ac7

Please sign in to comment.