#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# Test.DateAssert Class

Defined in: `test/js/DateAssert.js:3`
Module: test

The DateAssert object provides functions to test JavaScript Date objects for a variety of cases.

- Index
- Methods

## Item Index

### Methods

- datesAreEqual static
- timesAreEqual static

## Methods

### `datesAreEqual`

(

- `expected`
- `actual`
- `message`

)
static

Defined in `test/js/DateAssert.js:14`

Asserts that a date's month, day, and year are equal to another date's.

#### Parameters:

- `expected` Date

  The expected date.

- `actual` Date

  The actual date to test.

- `message` String

  (Optional) The message to display if the assertion fails.

### `timesAreEqual`

(

- `expected`
- `actual`
- `message`

)
static

Defined in `test/js/DateAssert.js:50`

Asserts that a date's hour, minutes, and seconds are equal to another date's.

#### Parameters:

- `expected` Date

  The expected date.

- `actual` Date

  The actual date to test.

- `message` String

  (Optional) The message to display if the assertion fails.