Fixing m.route() after a canceled navigation (#1126)

This commit is contained in:
Jared Jacobs 2016-06-29 22:42:45 -07:00
parent 015f127563
commit e9e2a45caa
2 changed files with 14 additions and 5 deletions

View file

@ -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