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

Function assertFalsy

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

Source from the content-addressed store, hash-verified

15}
16
17export function assertFalsy(actual, msg = '') {
18 if (actual) {
19 throw new Error(`${formatMsg(msg)}expected: falsy, actual: ${actual}`);
20 }
21}
22
23export function assertStringMatchesRegEx(actual, regex, msg = '') {
24 if (!regex.test(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