Add browser tests (#696)

This commit is contained in:
Carl Törnqvist
2019-04-02 14:55:21 +02:00
committed by GitHub
parent 5879bdb404
commit a22fca69de
5 changed files with 291 additions and 46 deletions
+1 -1
View File
@@ -138,11 +138,11 @@ Choo.prototype.start = function () {
}
this._setCache(this.state)
this._matchRoute()
this._stores.forEach(function (initStore) {
initStore(self.state)
})
this._matchRoute()
this._tree = this._prerender(this.state)
assert.ok(this._tree, 'choo.start: no valid DOM node returned for location ' + this.state.href)