Namespace: Asserts

'brixy.tester.Assert'. Asserts

Asserts namespace.

Source:

Methods

(static) is (actual, expected) → {module:'brixy.tester.Assert'~Rating}

Tests if objects are identical.

Parameters:
Name Type Description
actual *
expected *
Returns:
Source:

(static) isLike (actual, expected, depth, specsopt) → {module:'brixy.tester.Assert'~Rating}

Tests if objects are equal.

Parameters:
Name Type Attributes Description
actual *
expected *
depth int
specs module:'brixy.tester.Specials'~Specials <optional>

(optional)

Returns:
Source:

(static) isMember (actual, expected) → {module:'brixy.tester.Assert'~Rating}

Tests if value is a member of the object.

Parameters:
Name Type Description
actual *
expected Array | Object
Returns:
Source:

(static) isNot (actual, expected) → {module:'brixy.tester.Assert'~Rating}

Tests if objects are not identical.

Parameters:
Name Type Description
actual *
expected *
Returns:
Source:

(static) isThrown (actual, expectedopt) → {module:'brixy.tester.Assert'~Rating}

Tests if a callback throws an exception. Compares the thrown error only when argument expected is given.
Note: Error messages are localised ("Error: message" vs. "Chyba: message").

Parameters:
Name Type Attributes Description
actual function
expected * <optional>

(optional)

Returns:
Source:

(static) notLike (actual, expected, depth, specsopt) → {module:'brixy.tester.Assert'~Rating}

Tests if objects are not equal.

Parameters:
Name Type Attributes Description
actual *
expected *
depth int
specs module:'brixy.tester.Specials'~Specials <optional>

(optional)

Returns:
Source:

(static) notMember (actual, expected) → {module:'brixy.tester.Assert'~Rating}

Tests if value is not a member of the object.

Parameters:
Name Type Description
actual *
expected Array | Object
Returns:
Source:

(static) notThrown (actual, expectedopt) → {module:'brixy.tester.Assert'~Rating}

Tests if a callback doesn't throw an exception. Compares the thrown error only when argument expected is given.
Note: Error messages are localised ("Error: message" vs. "Chyba: message").

Parameters:
Name Type Attributes Description
actual function
expected * <optional>

(optional)

Returns:
Source: