Make an assertion that actual and expected are not equal, deeply. If not then throw.
actual
expected
Optional
24.7.0
Type parameter can be specified to ensure values under comparison have the same type.
import { assertNotEquals } from "assert";assertNotEquals(1, 2); // Doesn't throwassertNotEquals(1, 1); // Throws Copy
import { assertNotEquals } from "assert";assertNotEquals(1, 2); // Doesn't throwassertNotEquals(1, 1); // Throws
Make an assertion that
actual
andexpected
are not equal, deeply. If not then throw.