Clock
Class: Clock
Clock
Jasmine's mock clock is used when testing time dependent code.
Constructor
new Clock()
Note: Do not construct this directly, Jasmine will make one during booting. You can get the current clock with jasmine.clock
.
Methods
install() → {Clock}
Install the mock clock over the built-in methods-
Returns:
- Type
- Clock