MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / assertTrue

Function assertTrue

apps/automated/src/tk-unit.ts:160–164  ·  view source on GitHub ↗
(test: boolean, message?: string)

Source from the content-addressed store, hash-verified

158}
159
160export function assertTrue(test: boolean, message?: string) {
161 if (test !== true) {
162 throw new Error(message);
163 }
164}
165
166export function assertFalse(test: boolean, message?: string) {
167 if (test !== false) {

Callers 2

test_isRunningFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected