method Assert.prototype.notPropEqual
Assert.prototype.notPropEqual(
actual: unknown,
expected: unknown,
message?: string
): void

Asserts that actual and expected do NOT have the same own enumerable properties and values. Inverse of Assert.prototype.propEqual.

Examples

Example 1

assert.notPropEqual({ a: 1 }, { a: 2 });
assert.notPropEqual({ a: 1, b: 2 }, { a: 1 }); // extra key makes them unequal

Parameters

actual: unknown

The actual object.

expected: unknown

The value it should not propEqual.

optional
message: string

Optional failure message.

Return Type

void

Usage

import { Assert } from ".";