You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To test events we currently have to use a multi-step process:
Register a "failure" timeout that will assert false when the tested event fails to trigger (usually happens after 1 second)
Register a success handler to the object that should trigger the event that cancels the failure timeout and calls done()
Perform the action that should trigger an event
While this is a neat way to do things, it's rather verbose. It would be nice if we could add a couple of helper methods for doing just this. One solution that springs to mind is to create helpers for the failure timeout and the success callback, or we could just roll them all up into one thing.
Either way, very open to suggestions on this one!
The text was updated successfully, but these errors were encountered:
To test events we currently have to use a multi-step process:
assert false
when the tested event fails to trigger (usually happens after 1 second)done()
While this is a neat way to do things, it's rather verbose. It would be nice if we could add a couple of helper methods for doing just this. One solution that springs to mind is to create helpers for the failure timeout and the success callback, or we could just roll them all up into one thing.
Either way, very open to suggestions on this one!
The text was updated successfully, but these errors were encountered: