]> source.dussan.org Git - jquery.git/commitdiff
Build: remove needless file and re-enable jscs
authorOleg Gaidarenko <markelog@gmail.com>
Tue, 22 Dec 2015 17:16:50 +0000 (20:16 +0300)
committerOleg Gaidarenko <markelog@gmail.com>
Tue, 22 Dec 2015 17:17:27 +0000 (20:17 +0300)
Gruntfile.js
test/promises-aplus-adapter.js [deleted file]

index ad59f16df813031a11ce60ee4f2ce25b2105acf8..f3ed6855a6f633aa805d211af757d53e3f915a78 100644 (file)
@@ -196,7 +196,7 @@ module.exports = function( grunt ) {
        // Integrate jQuery specific tasks
        grunt.loadTasks( "build/tasks" );
 
-       grunt.registerTask( "lint", [ "jsonlint", "jshint" ] );
+       grunt.registerTask( "lint", [ "jsonlint", "jshint", "jscs" ] );
 
        // Don't run Node-related tests in Node.js < 1.0.0 as they require an old
        // jsdom version that needs compiling, making it harder for people to compile
diff --git a/test/promises-aplus-adapter.js b/test/promises-aplus-adapter.js
deleted file mode 100644 (file)
index 7768e2c..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-/*jshint es3:false, node:true */
-"use strict";
-
-require( "jsdom" ).env( "", function( errors, window ) {
-       if ( errors ) {
-               console.error( errors );
-               return;
-       }
-
-       var jQuery = require( ".." )( window );
-
-       exports.deferred = function() {
-               var deferred = jQuery.Deferred();
-
-               return {
-                       get promise() {
-                               return deferred.promise();
-                       },
-                       resolve: deferred.resolve.bind( deferred ),
-                       reject: deferred.reject.bind( deferred )
-               };
-       };
-} );