lib/render.js
function(){
		var finished = true,
			now = Date.now(),
			options = render.options,
			results = options.results ? render._normalizePath( options.results ) : null;

		// Wait until all modules have been triggered before checking states
		if ( render.state < munit.RENDER_STATE_ACTIVE ) {
			return;
		}

		// Can only check an active munit
		render.requireState( munit.RENDER_STATE_ACTIVE, render.check );

		// Check each module
		munit.each( munit.ns, function( mod, name ) {
			if ( mod.state < munit.ASSERT_STATE_FINISHED ) {
				return ( finished = false );
			}
		});

		// Check dependency chains if test suite isn't yet finished
		if ( ! finished ) {
			munit.queue.check();

			// Check each untriggered module to see if it's dependencies have been closed
			munit.tests.forEach(function( assert ) {
				if ( assert.state === munit.ASSERT_STATE_DEFAULT && ! assert.option( 'queue' ) && render.checkDepency( assert ) ) {
					assert.trigger();
				}
			});
		}
		// Only flush full results once all modules have completed
		else {
			render.state = munit.RENDER_STATE_FINISHED;
			munit.end = now;

			// Print out test results
			if ( results && results.length ) {
				render._renderResults( results + '/' );
			}
			else {
				render._complete();
			}
		}
	}
function(){
		var finished = true,
			now = Date.now(),
			options = render.options,
			results = options.results ? render._normalizePath( options.results ) : null;

		// Wait until all modules have been triggered before checking states
		if ( render.state < munit.RENDER_STATE_ACTIVE ) {
			return;
		}

		// Can only check an active munit
		render.requireState( munit.RENDER_STATE_ACTIVE, render.check );

		// Check each module
		munit.each( munit.ns, function( mod, name ) {
			if ( mod.state < munit.ASSERT_STATE_FINISHED ) {
				return ( finished = false );
			}
		});

		// Check dependency chains if test suite isn't yet finished
		if ( ! finished ) {
			munit.queue.check();

			// Check each untriggered module to see if it's dependencies have been closed
			munit.tests.forEach(function( assert ) {
				if ( assert.state === munit.ASSERT_STATE_DEFAULT && ! assert.option( 'queue' ) && render.checkDepency( assert ) ) {
					assert.trigger();
				}
			});
		}
		// Only flush full results once all modules have completed
		else {
			render.state = munit.RENDER_STATE_FINISHED;
			munit.end = now;

			// Print out test results
			if ( results && results.length ) {
				render._renderResults( results + '/' );
			}
			else {
				render._complete();
			}
		}
	}
function ( ) { var finished = true , now = Date . now ( ) , options = render . options , results = options . results ? render . _normalizePath ( options . results ) : null ; // Wait until all modules have been triggered before checking states if ( render . state < munit . RENDER_STATE_ACTIVE ) { return ; } // Can only check an active munit render . requireState ( munit . RENDER_STATE_ACTIVE , render . check ) ; // Check each module munit . each ( munit . ns , function ( mod , name ) { if ( mod . state < munit . ASSERT_STATE_FINISHED ) { return ( finished = false ) ; } } ) ; // Check dependency chains if test suite isn't yet finished if ( ! finished ) { munit . queue . check ( ) ; // Check each untriggered module to see if it's dependencies have been closed munit . tests . forEach ( function ( assert ) { if ( assert . state === munit . ASSERT_STATE_DEFAULT && ! assert . option ( 'queue' ) && render . checkDepency ( assert ) ) { assert . trigger ( ) ; } } ) ; } // Only flush full results once all modules have completed else { render . state = munit . RENDER_STATE_FINISHED ; munit . end = now ; // Print out test results if ( results && results . length ) { render . _renderResults ( results + '/' ) ; } else { render . _complete ( ) ; } } }
Checks all modules to see if they are finished
Checks all modules to see if they are finished