MCPcopy Create free account
hub / github.com/denoland/std / assertNotStrictEquals

Function assertNotStrictEquals

assert/not_strict_equals.ts:27–42  ·  view source on GitHub ↗
(
  actual: T,
  expected: T,
  msg?: string,
)

Source from the content-addressed store, hash-verified

25 * @param msg The optional message to display if the assertion fails.
26 */
27export function assertNotStrictEquals<T>(
28 actual: T,
29 expected: T,
30 msg?: string,
31) {
32 if (!Object.is(actual, expected)) {
33 return;
34 }
35
36 const msgSuffix = msg ? `: ${msg}` : ".";
37 throw new AssertionError(
38 `Expected "actual" to not be strictly equal to: ${
39 format(actual)
40 }${msgSuffix}\n`,
41 );
42}

Callers 9

shuffle_test.tsFile · 0.90
fnFunction · 0.90
fnFunction · 0.90
fnFunction · 0.90
toBeFunction · 0.85
toBeDefinedFunction · 0.85
toBeUndefinedFunction · 0.85
toBeNullFunction · 0.85

Calls 1

formatFunction · 0.90

Tested by

no test coverage detected