lib/assert.js
function( name, startFunc, error ) {
		var self = this, result;

		// Assign proper error
		if ( ! error ) {
			error = new munit.AssertionError( "'" + name + "' test failed", startFunc );
		}
		else if ( ! ( error instanceof Error ) ) {
			error = new munit.AssertionError( error, startFunc );
		}

		// Increment error count and jump
		self._addResult( name, error );
		self.failed++;
		self.count++;
		munit.failed++;

		// Kill on test failure
		if ( self.options.stopOnFail ) {
			self._flush();
			munit.exit( 1 );
		}
	}
function( name, startFunc, error ) {
		var self = this, result;

		// Assign proper error
		if ( ! error ) {
			error = new munit.AssertionError( "'" + name + "' test failed", startFunc );
		}
		else if ( ! ( error instanceof Error ) ) {
			error = new munit.AssertionError( error, startFunc );
		}

		// Increment error count and jump
		self._addResult( name, error );
		self.failed++;
		self.count++;
		munit.failed++;

		// Kill on test failure
		if ( self.options.stopOnFail ) {
			self._flush();
			munit.exit( 1 );
		}
	}
function ( name , startFunc , error ) { var self = this , result ; // Assign proper error if ( ! error ) { error = new munit . AssertionError ( "'" + name + "' test failed" , startFunc ) ; } else if ( ! ( error instanceof Error ) ) { error = new munit . AssertionError ( error , startFunc ) ; } // Increment error count and jump self . _addResult ( name , error ) ; self . failed ++ ; self . count ++ ; munit . failed ++ ; // Kill on test failure if ( self . options . stopOnFail ) { self . _flush ( ) ; munit . exit ( 1 ) ; } }
Failed test storage
Failed test storage