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

Function currentPath

packages/ember-testing/lib/helpers/current_path.ts:27–37  ·  view source on GitHub ↗
(app: Application)

Source from the content-addressed store, hash-verified

25@public
26*/
27export default function currentPath(app: Application) {
28 assert('[BUG] app.__container__ is not set', app.__container__);
29
30 let routingService = app.__container__.lookup('service:-routing');
31 assert(
32 '[BUG] service:-routing is not a RoutingService',
33 routingService instanceof RoutingService
34 );
35
36 return get(routingService, 'currentPath');
37}

Callers

nothing calls this directly

Calls 3

assertFunction · 0.90
getFunction · 0.90
lookupMethod · 0.65

Tested by

no test coverage detected