MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / assert

Function assert

atomic-cli/tests/fixtures/graph_canvas_test.js:6–6  ·  view source on GitHub ↗
(value, message)

Source from the content-addressed store, hash-verified

4 results.id = 'canvas-test-results';
5 document.body.appendChild(results);
6 function assert(value, message) { if (!value) throw new Error(message); }
7 try {
8 assert(window.d3, 'D3 must load for the canvas interaction regression');
9 assert(!window.graphTestErrors.length, 'export must initialize without JavaScript errors');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected