Sha256: 39985c3e159fd0190db5d2242e2c5a6dbbce2b669b36118196c0c1b57add8a11
Contents?: true
Size: 567 Bytes
Versions: 9
Compression:
Stored size: 567 Bytes
Contents
METHODS = [ 'makePath' 'makeHref' 'transitionTo' 'replaceWith' 'goBack' 'getCurrentPath' 'getCurrentRoutes' 'getCurrentPathname' 'getCurrentParams' 'getCurrentQuery' 'isActive' 'setRouteComponentAtDepth' ] Lanes.Test.stubRouterContext = (options={}) -> RouterStub = Lanes.emptyFn for method in METHODS RouterStub[method] = options[method] || -> {} RouterStub.getRouteAtDepth = (depth) -> if options.routeHandler handler: options.routeHandler else null RouterStub
Version data entries
9 entries across 9 versions & 1 rubygems