Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test('routing helpers', async (assert) => {
await visit('/foo');
assert.equal(currentURL(), '/foo');
assert.equal(currentRouteName(), 'foo');
});
test('visiting /bar', async function(assert) {
await visit('/bar');
assert.equal(currentRouteName(), 'bar.index');
});
test('visiting /foo', async function(assert) {
await visit('/foo');
assert.equal(currentURL(), '/foo');
assert.equal(currentPath(), 'foo.index');
assert.equal(currentRouteName(), 'foo');
});