#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# Test.UnexpectedValue Class

Extends AssertionError
Defined in: `test/js/UnexpectedValue.js:1`
Module: test

UnexpectedValue is subclass of Error that is thrown whenever a value was unexpected in its scope. This typically means that a test was performed to determine that a value was not equal to a certain value.

- Index
- Methods
- Properties

## Item Index

### Methods

- getMessage

### Properties

- name
- unexpected

## Methods

### `getMessage`

() String

Defined in `test/js/UnexpectedValue.js:42`

Returns a fully formatted error for an assertion failure. This message provides information about the expected and actual values.

#### Returns:

String: A string describing the error.

## Properties

### `name`

String

Defined in `test/js/UnexpectedValue.js:27`

The name of the error that occurred.

### `unexpected`

Object

Defined in `test/js/UnexpectedValue.js:20`

The unexpected value.