Commit 3dee2983 authored by Oleg Gaidarenko's avatar Oleg Gaidarenko

Build: Use jscs to check test helpers

Also fix issues found by jscs
parent 8e5d1caf
...@@ -101,6 +101,9 @@ module.exports = function( grunt ) { ...@@ -101,6 +101,9 @@ module.exports = function( grunt ) {
jscs: { jscs: {
src: "src/**/*.js", src: "src/**/*.js",
gruntfile: "Gruntfile.js", gruntfile: "Gruntfile.js",
// Right know, check only test helpers
test: [ "test/data/testrunner.js", "test/data/testinit.js" ],
tasks: "build/tasks/*.js" tasks: "build/tasks/*.js"
}, },
testswarm: { testswarm: {
......
...@@ -201,7 +201,6 @@ this.ajaxTest = function( title, expect, options ) { ...@@ -201,7 +201,6 @@ this.ajaxTest = function( title, expect, options ) {
}); });
}; };
this.testIframe = function( fileName, name, fn ) { this.testIframe = function( fileName, name, fn ) {
asyncTest(name, function() { asyncTest(name, function() {
......
...@@ -124,7 +124,6 @@ window.moduleTeardown = function() { ...@@ -124,7 +124,6 @@ window.moduleTeardown = function() {
oldActive = jQuery.active; oldActive = jQuery.active;
} }
for ( i in jQuery.cache ) { for ( i in jQuery.cache ) {
++cacheLength; ++cacheLength;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment