lib/assert.js
function( name, actual, upper ) {
		var self = this,
			passed = false,
			message = '';

		if ( munit.isDate( actual ) && munit.isDate( upper ) ) {
			passed = actual.getTime() < upper.getTime();
			message = "Date '" + actual + "' is not before '" + upper + "'";
		}
		else {
			message = munit.isDate( actual ) ?
				"Upper value is not a Date object '" + upper + "'" :
				"Actual value is not a Date object '" + actual + "'";
		}

		return self.ok( name, passed, self.dateBefore, message );
	}
function( name, actual, upper ) {
		var self = this,
			passed = false,
			message = '';

		if ( munit.isDate( actual ) && munit.isDate( upper ) ) {
			passed = actual.getTime() < upper.getTime();
			message = "Date '" + actual + "' is not before '" + upper + "'";
		}
		else {
			message = munit.isDate( actual ) ?
				"Upper value is not a Date object '" + upper + "'" :
				"Actual value is not a Date object '" + actual + "'";
		}

		return self.ok( name, passed, self.dateBefore, message );
	}
function ( name , actual , upper ) { var self = this , passed = false , message = '' ; if ( munit . isDate ( actual ) && munit . isDate ( upper ) ) { passed = actual . getTime ( ) < upper . getTime ( ) ; message = "Date '" + actual + "' is not before '" + upper + "'" ; } else { message = munit . isDate ( actual ) ? "Upper value is not a Date object '" + upper + "'" : "Actual value is not a Date object '" + actual + "'" ; } return self . ok ( name , passed , self . dateBefore , message ) ; }
Tests date is before another date
Tests date is before another date