MCPcopy Create free account
hub / github.com/ThatOpen/engine_web-ifc / Equals

Function Equals

examples/usage/src/utils.ts:37–46  ·  view source on GitHub ↗
(name: string, value: any, expectedValue: any)

Source from the content-addressed store, hash-verified

35}
36
37export function Equals(name: string, value: any, expectedValue: any) {
38 if (value !== expectedValue) {
39 let msg = `[${name}] expected: ${JSON.stringify(expectedValue, null, 4)}, received: ${JSON.stringify(value, null, 4)}`;
40 console.log(chalk.redBright(`${msg}`));
41 throw new Error(msg)
42 }
43 else {
44 console.log(chalk.green(`${name}`));
45 }
46}

Callers 5

coordination.tsFile · 0.90
exporting.tsFile · 0.90
geometrystream.tsFile · 0.90
properties.tsFile · 0.90
modification.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected