MCPcopy
hub / github.com/emberjs/ember.js / assert

Function assert

packages/@ember/debug/lib/assert.ts:47–51  ·  view source on GitHub ↗
(desc: string, test?: unknown)

Source from the content-addressed store, hash-verified

45 function assert(desc: string, test: unknown): asserts test;
46 // eslint-disable-next-line no-inner-declarations
47 function assert(desc: string, test?: unknown): asserts test {
48 if (!test) {
49 throw new Error(`Assertion Failed: ${desc}`);
50 }
51 }
52 setAssert(assert);
53}

Callers 15

waitFunction · 0.90
visitFunction · 0.90
andThenFunction · 0.90
currentRouteNameFunction · 0.90
currentPathFunction · 0.90
resumeTestFunction · 0.90
currentURLFunction · 0.90
helperFunction · 0.90
compareFunction · 0.90
bindFunction · 0.90
runInitializersMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected