* Add test-utils/components.js and its tests * Tests: group together tests with/without components * Tests: factory => closure components * Tests: add dummy forEach blocks around sections with components * Tests: render/test-components tweaks * Tests: Wrap some component definitions in `createComponent()` calls These are the ones that would have been tedious to automate. jscodeshift will handle the remaining ones * Tests: wrap the rest of the components definitions * Tests: enable the three kind of components in all related files but api/tests/test-route.js * Add test-utils/components.js to index.html where needed * Tests: Some more render/tests/test-component.js refactoring * Tests: enable tests for #1638 * fix #1638 * Test: ensure that recycled components get a fresh state * Tests: add a test for onbeforeupdate and recycled nodes * Fix recycled components initialization fix #1641 |
||
|---|---|---|
| .. | ||
| tests | ||
| browserMock.js | ||
| callAsync.js | ||
| components.js | ||
| domMock.js | ||
| parseURL.js | ||
| pushStateMock.js | ||
| README.md | ||
| 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