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