Commit Graph
6 Commits
Author SHA1 Message Date
Tim Wisniewski e44f9619e9 prev.params should always exist (#227) 2016-08-23 05:45:53 -04:00
Ben Drucker e3f715f71b Clean up all DOM nodes when tests end
As the test suite grows it's bad for debugging to leak tons of elements
onto document.body. In order to concisely append/remove on the tests'
"end" event, we need to make sure the root tagName doesn't change. If it
does, the `tree` returned from `app.start` will no longer be the root
node and the removal fn will throw.
2016-07-04 16:19:17 -07:00
Ben Drucker 57ec042e1a Add test nesting using sheet router (cov 100!) 2016-07-04 16:19:17 -07:00
Ben Drucker 04b9e0efd2 Add test coverage for disabling sheet-router history/href listeners 2016-07-04 16:19:17 -07:00
Ben Drucker e6a2a8c01d Add test for hash based routing 2016-07-04 16:19:17 -07:00
Ben Drucker 37976c86f5 Add a routing test using proxyquire to short-circuit history handlers
* proxyquire (pq) replaces choo's sheet-router/history with a mock
* pq-universal replaces pq w/ pqify in the browser
* magic!
2016-07-04 16:19:17 -07:00