Make an assertion that actual and expected are not strictly equal. If the values are strictly equal then throw.
actual
expected
Optional
24.7.0
import { assertNotStrictEquals } from "assert";assertNotStrictEquals(1, 1); // Doesn't throwassertNotStrictEquals(1, 2); // Throws Copy
import { assertNotStrictEquals } from "assert";assertNotStrictEquals(1, 1); // Doesn't throwassertNotStrictEquals(1, 2); // Throws
Make an assertion that
actual
andexpected
are not strictly equal. If the values are strictly equal then throw.