Skip to content

assertNotEqual

Assert that two values differ under a deep comparison.

Plain objects and arrays are compared recursively by value.

Object keys must match exactly.

Dates are compared by the instant they hold.

Class instances and other values are compared using Object.is.

import { assertNotEqual } from "@kensio/smartass";
const before = "9f2c1a";
const after = "4b821d";
assertNotEqual(before, after);

Source file: src/assert/not-equal/not-equal.assert.ts