MCPcopy
hub / github.com/greggman/twgl.js / assertTruthy

Function assertTruthy

test/assert.js:11–15  ·  view source on GitHub ↗
(actual, msg = '')

Source from the content-addressed store, hash-verified

9}
10
11export function assertTruthy(actual, msg = '') {
12 if (!actual) {
13 throw new Error(`${formatMsg(msg)}expected: truthy, actual: ${actual}`);
14 }
15}
16
17export function assertFalsy(actual, msg = '') {
18 if (actual) {

Callers 3

helper-tests.jsFile · 0.90
program-tests.jsFile · 0.90
callbackFunction · 0.90

Calls 1

formatMsgFunction · 0.85

Tested by

no test coverage detected