currentRouteNameObject
public
Returns the currently active route name. Example: javascript
function validateRouteName() {
equal(currentRouteName(), 'some.path', "correct route was transitioned into.");
}
visit('/some/path').then(validateRouteName)
Returns:
-
Object
- The name of the currently active route.
Please login to continue.