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

Asserts that actual !== expected (strict inequality). Inverse of Assert.prototype.strictEqual.

Examples

Example 1

assert.notStrictEqual(1, "1", "different types");
assert.notStrictEqual({}, {}, "different object references");

Parameters

actual: unknown

The actual value.

expected: unknown

The value it should not strictly equal.

optional
message: string

Optional failure message.

Return Type

void

Usage

import { Assert } from ".";