Skip to content

Instantly share code, notes, and snippets.

@drydevelopment
Last active December 24, 2015 14:59
Show Gist options
  • Save drydevelopment/6817043 to your computer and use it in GitHub Desktop.
Save drydevelopment/6817043 to your computer and use it in GitHub Desktop.
/**
* Override window.setInterval to auto-call the function argument
* and bypass the delay to keep tests snappy.
*/
window.setInterval = function(func, delay) {
func.call();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment