lib/munit.js
function( name, handle ) {
		if ( munit.isObject( name ) ) {
			return munit.each( name, function( fn, method ) {
				munit.custom( method, fn );
			});
		}

		// Ensure that name can be used
		if ( munit.customReserved.indexOf( name ) > -1 ) {
			throw new Error( "'" + name + "' is a reserved name and cannot be added as a custom assertion test" );
		}

		// Send off to assertion module for attachment
		munit.Assert.prototype[ name ] = handle;
		munit.each( munit.ns, function( mod ) {
			mod.custom( name, handle );
		});
	}
function( name, handle ) {
		if ( munit.isObject( name ) ) {
			return munit.each( name, function( fn, method ) {
				munit.custom( method, fn );
			});
		}

		// Ensure that name can be used
		if ( munit.customReserved.indexOf( name ) > -1 ) {
			throw new Error( "'" + name + "' is a reserved name and cannot be added as a custom assertion test" );
		}

		// Send off to assertion module for attachment
		munit.Assert.prototype[ name ] = handle;
		munit.each( munit.ns, function( mod ) {
			mod.custom( name, handle );
		});
	}
function ( name , handle ) { if ( munit . isObject ( name ) ) { return munit . each ( name , function ( fn , method ) { munit . custom ( method , fn ) ; } ) ; } // Ensure that name can be used if ( munit . customReserved . indexOf ( name ) > - 1 ) { throw new Error ( "'" + name + "' is a reserved name and cannot be added as a custom assertion test" ) ; } // Send off to assertion module for attachment munit . Assert . prototype [ name ] = handle ; munit . each ( munit . ns , function ( mod ) { mod . custom ( name , handle ) ; } ) ; }
Adding custom test comparisons
Adding custom test comparisons