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

Function assertSame

example/tests/window_message_test.js:38–44  ·  view source on GitHub ↗
(expected, actual, message)

Source from the content-addressed store, hash-verified

36 }
37
38 function assertSame(expected, actual, message) {
39 if (!Object.is(expected, actual)) {
40 throw new Error(
41 `${message} - expected ${JSON.stringify(expected)}, got ${JSON.stringify(actual)}`,
42 );
43 }
44 }
45
46 function assertTrue(condition, message) {
47 if (!condition) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected