From 3dee2983ab211bc9b1bdbf372b0ac002f7debb03 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Tue, 18 Feb 2014 20:32:17 +0400 Subject: [PATCH] Build: Use jscs to check test helpers Also fix issues found by jscs --- Gruntfile.js | 3 +++ test/data/testinit.js | 1 - test/data/testrunner.js | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index ea570f1fa..001a407d0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -101,6 +101,9 @@ module.exports = function( grunt ) { jscs: { src: "src/**/*.js", gruntfile: "Gruntfile.js", + + // Right know, check only test helpers + test: [ "test/data/testrunner.js", "test/data/testinit.js" ], tasks: "build/tasks/*.js" }, testswarm: { diff --git a/test/data/testinit.js b/test/data/testinit.js index 2751f65cc..de03e0e7c 100644 --- a/test/data/testinit.js +++ b/test/data/testinit.js @@ -201,7 +201,6 @@ this.ajaxTest = function( title, expect, options ) { }); }; - this.testIframe = function( fileName, name, fn ) { asyncTest(name, function() { diff --git a/test/data/testrunner.js b/test/data/testrunner.js index ea7cf7d7a..4b8b255ae 100644 --- a/test/data/testrunner.js +++ b/test/data/testrunner.js @@ -124,7 +124,6 @@ window.moduleTeardown = function() { oldActive = jQuery.active; } - for ( i in jQuery.cache ) { ++cacheLength; } -- 2.39.5