Skip to content

Documentation / @tenancy-node/testing / FakeClock

Class: FakeClock ​

Defined in: fakes.ts:4

Reloj controlable para tests.

Implements ​

Constructors ​

Constructor ​

new FakeClock(start?): FakeClock

Defined in: fakes.ts:7

Parameters ​

start? ​

string | Date

Returns ​

FakeClock

Methods ​

advance() ​

advance(ms): void

Defined in: fakes.ts:15

Parameters ​

ms ​

number

Returns ​

void


now() ​

now(): Date

Defined in: fakes.ts:11

Returns ​

Date

Implementation of ​

Clock.now


set() ​

set(date): void

Defined in: fakes.ts:19

Parameters ​

date ​

string | Date

Returns ​

void

Publicado bajo la licencia MIT.