Test#currentPath()

currentPathObjectpublic

Defined in packages/ember-testing/lib/helpers.js:167
Available since 1.5.0

Returns the current path.

Example:

function validateURL() {
equal(currentPath(), 'some.path.index', "correct path was transitioned into.");
}

click('#some-link-id').then(validateURL);

Returns:

Object
The currently active path.
doc_EmberJs
2016-11-30 16:53:39
Comments
Leave a Comment

Please login to continue.