MCPcopy
hub / github.com/flatiron/director / assertRoute

Function assertRoute

test/server/core/mount-test.js:13–21  ·  view source on GitHub ↗
(fn, path, route)

Source from the content-addressed store, hash-verified

11 director = require('../../../lib/director');
12
13function assertRoute (fn, path, route) {
14 if (path.length === 1) {
15 return assert.strictEqual(route[path.shift()], fn);
16 }
17
18 route = route[path.shift()];
19 assert.isObject(route);
20 assertRoute(fn, path, route);
21}
22
23vows.describe('director/core/mount').addBatch({
24 "An instance of director.Router": {

Callers 1

mount-test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…