aboutsummaryrefslogtreecommitdiffstats
path: root/build/tasks/node_smoke_test.js
blob: f398725219cd87b41d39d322ac5811ebe0b5a129 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module.exports = function( grunt ) {

	"use strict";

	grunt.registerTask( "node_smoke_test", function() {
	    var done = this.async();
		require( "jsdom" ).env( "", function( errors, window ) {
			if ( errors ) {
				console.error( errors );
				done( false );
			}
			require( "../.." )( window );
			done();
		});
	});
};