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

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

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

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

		return self.ok( name, passed, self.dateBetween, message );
	}
function ( name , actual , lower , upper ) { var self = this , passed = false , message = '' ; if ( munit . isDate ( actual ) && munit . isDate ( lower ) && munit . isDate ( upper ) ) { passed = actual . getTime ( ) > lower . getTime ( ) && actual . getTime ( ) < upper . getTime ( ) ; message = "Date '" + actual + "' is not between '" + lower + "' and '" + upper + "'" ; } else { message = ! munit . isDate ( actual ) ? "Actual value is not a Date object '" + actual + "'" : ! munit . isDate ( lower ) ? "Lower value is not a Date object '" + lower + "'" : "Upper value is not a Date object '" + upper + "'" ; } return self . ok ( name , passed , self . dateBetween , message ) ; }
Tests date is between two other dates
Tests date is between two other dates