* Fix a copy/paste fail Also, fix some incorrect tests. * Clarify how routes are diffed, improve key + route resolver docs - Add some missing links to route resolvers and single-child keyed fragments, clarify usage around them. - Drive-by: remove a redundant sentence that itself was missing a period. * Actually test for propagation and preventDefault Previously, the mocks were both junk and inaccurate. No wonder my tests were silently failing - they were wrong and not obviously wrong. |
||
|---|---|---|
| .. | ||
| tests | ||
| browserMock.js | ||
| callAsync.js | ||
| components.js | ||
| domMock.js | ||
| parseURL.js | ||
| pushStateMock.js | ||
| README.md | ||
| throttleMock.js | ||
| xhrMock.js | ||
Test utils
Utilities for testing Mithril
Version: 1.0 License: MIT
About
- pushStateMock - mock for
history.pushStateandlocation - ajaxMock - mock for XMLHttpRequest and JSONP transporters
- parseURL - helper function for URL parsing