Skip to content

Instantly share code, notes, and snippets.

@bcardarella
Created May 29, 2017 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcardarella/bea2d7622933e3f164fdddaa184f5fe2 to your computer and use it in GitHub Desktop.
Save bcardarella/bea2d7622933e3f164fdddaa184f5fe2 to your computer and use it in GitHub Desktop.
test('handleURL for storefront-less URLs', function(assert) {
let router = this.subject();
router.startRouting();
let transition = router.handleURL('/foo/bar/baz');
assert.equal(transition.targetName, 'foobar.index');
});
test('handleURL for URLs with storefront segment', function(assert) {
let router = this.subject();
router.startRouting();
let transition = router.handleURL('/us/foo/bar/baz');
assert.equal(transition.targetName, 'foobar.index');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment