From c7431c7793f7605250807f91bee7c9ddcbaeb91b Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski Date: Wed, 10 Feb 2016 12:57:49 +0100 Subject: Build: Drop testing on jsdom with Node 0.10 & 0.12 Fixes gh-2841 --- Gruntfile.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'Gruntfile.js') diff --git a/Gruntfile.js b/Gruntfile.js index 094cd5b98..723bc12cc 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -15,17 +15,9 @@ module.exports = function( grunt ) { var fs = require( "fs" ), gzip = require( "gzip-js" ), srcHintOptions = readOptionalJSON( "src/.jshintrc" ), - newNode = !/^v0/.test( process.version ), - - // Allow to skip jsdom-related tests in Node.js < 1.0.0 - runJsdomTests = newNode || ( function() { - try { - require( "jsdom" ); - return true; - } catch ( e ) { - return false; - } - } )(); + + // Skip jsdom-related tests in Node.js 0.10 & 0.12 + runJsdomTests = !/^v0/.test( process.version ); if ( !grunt.option( "filename" ) ) { grunt.option( "filename", "jquery.js" ); -- cgit v1.2.3