Support non-root base path
This commit is contained in:
parent
3bb0a6287f
commit
297e343264
4 changed files with 8 additions and 6 deletions
|
|
@ -5,7 +5,7 @@ var pushStateMock = require("../../test-utils/pushStateMock")
|
|||
var Router = require("../../router/router")
|
||||
|
||||
o.spec("Router.getPath", function() {
|
||||
void ["#", "?", "", "#!", "?!"].forEach(function(prefix) {
|
||||
void ["#", "?", "", "#!", "?!", '/foo'].forEach(function(prefix) {
|
||||
o.spec("using prefix `" + prefix + "`", function() {
|
||||
var $window, router, onRouteChange, onFail
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue