Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

setTimeout #2

Closed
Cloud-Automation opened this issue Sep 29, 2014 · 1 comment
Closed

setTimeout #2

Cloud-Automation opened this issue Sep 29, 2014 · 1 comment

Comments

@Cloud-Automation
Copy link

Is there a way to implement setTimeout? I am using the Q library for using promisses and the library needs the setTimeout function.

@jacobsa
Copy link
Contributor

jacobsa commented Sep 30, 2014

Please see the "Is it for me?" FAQ question. The recommendation is to use dependency injection to accept functions like setTimeout from the DOM, injecting mocks in your tests.

@jacobsa jacobsa closed this as completed Sep 30, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant