MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / assertSame

Function assertSame

example/tests/sandbox_test.js:60–66  ·  view source on GitHub ↗
(expected, actual, message)

Source from the content-addressed store, hash-verified

58 }
59
60 function assertSame(expected, actual, message) {
61 if (!Object.is(expected, actual)) {
62 throw new Error(
63 `${message} - 期望 ${formatValue(expected)}, 实际 ${formatValue(actual)}`,
64 );
65 }
66 }
67
68 function assertNotSame(unexpected, actual, message) {
69 if (Object.is(unexpected, actual)) {

Callers 2

assertThrowsOrKeepsValueFunction · 0.70
sandbox_test.jsFile · 0.70

Calls 1

formatValueFunction · 0.85

Tested by

no test coverage detected