Skip to content

Commit f32a7bc

Browse files
committed
Minor lint tweaks.
1 parent eae34f5 commit f32a7bc

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

Gruntfile.js

+17-17
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ module.exports = function(grunt) {
1616
return500: {
1717
options: {
1818
port: 10921,
19-
middleware: function(connect, options) {
20-
return [function(req, res, next){
21-
res.statusCode = 500;
22-
res.end();
23-
}];
24-
}
19+
middleware: function() {
20+
return [function(req, res) {
21+
res.statusCode = 500;
22+
res.end();
23+
}];
2524
}
2625
}
26+
}
2727
},
2828
jshint: {
2929
all: [
@@ -36,10 +36,10 @@ module.exports = function(grunt) {
3636
jshintrc: '.jshintrc'
3737
}
3838
},
39-
watch : {
40-
dev : {
41-
files : ['tasks/**/*'],
42-
tasks : ['jasmine:pivotal:build']
39+
watch: {
40+
dev: {
41+
files: ['tasks/**/*'],
42+
tasks: ['jasmine:pivotal:build']
4343
}
4444
},
4545
jasmine: {
@@ -54,10 +54,10 @@ module.exports = function(grunt) {
5454
}
5555
}
5656
},
57-
phantom_polyfills: {
57+
phantomPolyfills: {
5858
src: 'test/fixtures/phantom-polyfills/src/**/*.js',
59-
options : {
60-
specs : 'test/fixtures/phantom-polyfills/spec/**/*.js',
59+
options: {
60+
specs: 'test/fixtures/phantom-polyfills/spec/**/*.js'
6161
}
6262
},
6363
consoleDisplayOptions: {
@@ -66,7 +66,7 @@ module.exports = function(grunt) {
6666
specs: 'test/fixtures/pivotal/spec/*Spec.js',
6767
helpers: 'test/fixtures/pivotal/spec/*Helper.js',
6868
display: 'short',
69-
summary: true,
69+
summary: true
7070
}
7171
},
7272
consoleDisplayOptionsNone: {
@@ -75,7 +75,7 @@ module.exports = function(grunt) {
7575
specs: 'test/fixtures/pivotal/spec/*Spec.js',
7676
helpers: 'test/fixtures/pivotal/spec/*Helper.js',
7777
display: 'none',
78-
summary: true,
78+
summary: true
7979
}
8080
},
8181
deepOutfile: {
@@ -114,8 +114,8 @@ module.exports = function(grunt) {
114114
},
115115
selfTest: {
116116
options: {
117-
specs:["test/selfTest/*.js"],
118-
"--web-security": "no"
117+
specs: ['test/selfTest/*.js'],
118+
'--web-security': 'no'
119119
}
120120
}
121121
},

tasks/jasmine.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
module.exports = function(grunt) {
1212

1313
// node api
14-
var fs = require('fs'),
14+
var fs = require('fs'),
1515
path = require('path');
1616

1717
// npm lib
@@ -397,7 +397,7 @@ module.exports = function(grunt) {
397397
var template = grunt.file.read(options.junit.template || junitTemplate);
398398
if (options.junit.consolidate) {
399399
var xmlFile = path.join(options.junit.path, 'TEST-' + testsuites.suite1.name.replace(/[^\w]/g, '') + '.xml');
400-
grunt.file.write(xmlFile, grunt.util._.template(template, { testsuites: _.values(testsuites)}));
400+
grunt.file.write(xmlFile, grunt.util._.template(template, { testsuites: _.values(testsuites) }));
401401
} else {
402402
_.forEach(testsuites, function(suiteData) {
403403
var xmlFile = path.join(options.junit.path, 'TEST-' + suiteData.name.replace(/[^\w]/g, '') + '.xml');

tasks/jasmine/reporters/PhantomReporter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ if (window._phantom) {
121121
keyMap.push(key);
122122
}
123123
} catch (e) {
124-
return '[Object]';
124+
return '[Object]';
125125
}
126126
return value;
127127
});

0 commit comments

Comments
 (0)