- `handleEvent` is a very useful tool. - Always use `addEventListener`/`removeEventListener`, since it's required for this optimization. - Change log updated. - Drive-by: make DOM mock work with both event listener types. - Drive-by: eliminate possibility of `Object.prototype` interference. |
||
|---|---|---|
| .. | ||
| 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