mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
04ec688e80
Fixes gh-2133
Fixes gh-2501
Closes gh-2504
Refs gh-1950
Refs gh-1949
Refs gh-2397
Refs gh-1537
Refs gh-2504
Refs 842958e7ae
17 lines
482 B
JavaScript
17 lines
482 B
JavaScript
/* jshint node: true */
|
|
|
|
"use strict";
|
|
|
|
// Run Node with provided parameters: the first one being the Grunt
|
|
// done function and latter ones being files to be tested.
|
|
// See the comment in ../node_smoke_tests.js for more information.
|
|
module.exports = function spawnTest( done ) {
|
|
var testPaths = [].slice.call( arguments, 1 ),
|
|
spawn = require( "win-spawn" );
|
|
|
|
spawn( "node", testPaths, { stdio: "inherit" } )
|
|
.on( "close", function( code ) {
|
|
done( code === 0 );
|
|
} );
|
|
} ;
|