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

Function assertNull

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

Source from the content-addressed store, hash-verified

277}
278
279export function assertNull(actual: any, message?: string) {
280 if (actual !== null && actual !== undefined) {
281 throw new Error(message + ' Actual: ' + actual + ' is not null/undefined');
282 }
283}
284
285export function assertNotNull(actual: any, message?: string) {
286 if (actual === null || actual === undefined) {

Callers 2

test_reset_profilesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected