TOC Toolkit API - v0.1.0
Preparing search index...
toc-toolkit/foundation/fixtures
FakeClock
Class FakeClock
A clock that a test moves by hand and that counts how often a budget read it.
Implements
Clock
Index
Constructors
constructor
Properties
reads
Methods
now
advance
Constructors
constructor
new
FakeClock
()
:
FakeClock
Returns
FakeClock
Properties
reads
reads
:
number
= 0
Methods
now
now
()
:
number
Returns
number
advance
advance
(
milliseconds
:
number
)
:
void
Parameters
milliseconds
:
number
Returns
void
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
reads
Methods
now
advance
TOC Toolkit API - v0.1.0
Loading...
A clock that a test moves by hand and that counts how often a budget read it.