UNPKG

react-crossroads

Version:

Client side router for web applications built with React and utilizing the Flux architecture. The backing routing engine is CrossroadsJs.

11 lines (7 loc) 240 B
join = require('path').join assertUrl = (path) -> path = if path[0] == '/' then path.substring 1 else path url = root + path driver.getCurrentUrl() .then (currentUrl) -> currentUrl.should.equal url module.exports = {assertUrl}