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

Function assertNotSame

example/tests/sandbox_test.js:68–72  ·  view source on GitHub ↗
(unexpected, actual, message)

Source from the content-addressed store, hash-verified

66 }
67
68 function assertNotSame(unexpected, actual, message) {
69 if (Object.is(unexpected, actual)) {
70 throw new Error(`${message} - 不应等于 ${formatValue(unexpected)}`);
71 }
72 }
73
74 function assertTrue(condition, message) {
75 if (!condition) throw new Error(message || "断言失败: 条件不为真");

Callers 1

sandbox_test.jsFile · 0.85

Calls 1

formatValueFunction · 0.85

Tested by

no test coverage detected