mithril-vndb/test-utils
Leo Horie 977239d207 rename limiter to throttle and refactor
- don't inject raf/setTimeout since we can't really mock them w/ a good degree of timing accuracy anyways

fix some unrelated tests
2016-05-19 23:24:04 -04:00
..
tests rename limiter to throttle and refactor 2016-05-19 23:24:04 -04:00
ajaxMock.js initial commit (work in progress) 2016-04-20 20:02:37 -04:00
callAsync.js initial commit (work in progress) 2016-04-20 20:02:37 -04:00
domMock.js m.route tests should run against all prefixes 2016-05-19 10:59:41 -07:00
parseURL.js initial commit (work in progress) 2016-04-20 20:02:37 -04:00
pushStateMock.js initial commit (work in progress) 2016-04-20 20:02:37 -04:00
README.md initial commit (work in progress) 2016-04-20 20:02:37 -04:00

Test utils

Utilities for testing Mithril

Version: 1.0 License: MIT

About

  • pushStateMock - mock for history.pushState and location
  • ajaxMock - mock for XMLHttpRequest and JSONP transporters
  • parseURL - helper function for URL parsing