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

Function assert

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

Source from the content-addressed store, hash-verified

152}
153
154export function assert(test: any, message?: string) {
155 if (!test) {
156 throw new Error(message);
157 }
158}
159
160export function assertTrue(test: boolean, message?: string) {
161 if (test !== true) {

Calls

no outgoing calls

Tested by

no test coverage detected