Fixing m.route() after a canceled navigation (#1126)
This commit is contained in:
parent
015f127563
commit
e9e2a45caa
2 changed files with 14 additions and 5 deletions
|
|
@ -127,6 +127,7 @@ describe("m.route()", function () {
|
|||
route("/b")
|
||||
|
||||
expect(spy).to.not.have.been.called
|
||||
expect(m.route()).to.equal("/a")
|
||||
})
|
||||
|
||||
dit("skips route change if subcomponent ctrl.onunload calls preventDefault", function (root) { // eslint-disable-line
|
||||
|
|
@ -157,6 +158,7 @@ describe("m.route()", function () {
|
|||
route("/b")
|
||||
|
||||
expect(spy).to.not.have.been.called
|
||||
expect(m.route()).to.equal("/a")
|
||||
})
|
||||
|
||||
dit("initializes a component's constructor on route change", function (root) { // eslint-disable-line
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue