Created
May 29, 2017 18:10
-
-
Save bcardarella/bea2d7622933e3f164fdddaa184f5fe2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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