moved jshint task to test
and fixed lint errors
This commit is contained in:
parent
d4d45192e7
commit
bf27b3e831
@ -8,6 +8,7 @@
|
|||||||
"sub": true,
|
"sub": true,
|
||||||
"undef": true,
|
"undef": true,
|
||||||
"boss": true,
|
"boss": true,
|
||||||
|
"unused": "vars",
|
||||||
"eqnull": true,
|
"eqnull": true,
|
||||||
"node": true
|
"node": true
|
||||||
}
|
}
|
||||||
|
@ -46,6 +46,7 @@ module.exports = function(grunt) {
|
|||||||
options: {
|
options: {
|
||||||
specs: 'test/fixtures/pivotal/spec/*Spec.js',
|
specs: 'test/fixtures/pivotal/spec/*Spec.js',
|
||||||
helpers: 'test/fixtures/pivotal/spec/*Helper.js',
|
helpers: 'test/fixtures/pivotal/spec/*Helper.js',
|
||||||
|
summary: true,
|
||||||
junit: {
|
junit: {
|
||||||
path: 'junit'
|
path: 'junit'
|
||||||
}
|
}
|
||||||
@ -131,6 +132,6 @@ module.exports = function(grunt) {
|
|||||||
grunt.loadNpmTasks('grunt-contrib-internal');
|
grunt.loadNpmTasks('grunt-contrib-internal');
|
||||||
grunt.loadNpmTasks('grunt-contrib-connect');
|
grunt.loadNpmTasks('grunt-contrib-connect');
|
||||||
|
|
||||||
grunt.registerTask('test', ['connect:return500', 'jasmine', 'nodeunit']);
|
grunt.registerTask('test', ['jshint', 'connect:return500', 'jasmine', 'nodeunit']);
|
||||||
grunt.registerTask('default', ['jshint', 'test', 'build-contrib']);
|
grunt.registerTask('default', ['test', 'build-contrib']);
|
||||||
};
|
};
|
||||||
|
@ -377,7 +377,6 @@ module.exports = function(grunt) {
|
|||||||
|
|
||||||
function logStack(stack, indentLevel) {
|
function logStack(stack, indentLevel) {
|
||||||
var lines = (stack || '').split('\n');
|
var lines = (stack || '').split('\n');
|
||||||
var newArr = [];
|
|
||||||
for (var i = 0; i < lines.length && i < 11; i++) {
|
for (var i = 0; i < lines.length && i < 11; i++) {
|
||||||
grunt.log.writeln((indent(indentLevel) + lines[i]));
|
grunt.log.writeln((indent(indentLevel) + lines[i]));
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*global window:false, alert:false, jasmine:false, Node:false, */
|
/*global window:false, alert:false, jasmine:false, Node:false */
|
||||||
/*jshint curly:false*/
|
/*jshint curly:false*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
Loading…
Reference in New Issue
Block a user