Update docs/src/clock.md

Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
Signed-off-by: Pavel Feldman <pavel.feldman@gmail.com>
This commit is contained in:
Pavel Feldman 2024-06-01 07:02:21 -07:00 committed by GitHub
parent f28e238891
commit d01bd60467
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,7 @@ By default, the clock starts at the unix epoch (timestamp of 0), but you can ove
```js
await page.clock.install();
await page.clock.install({ now });
await page.clock.install({ now: new Date('2020-02-02') });
```
## Only fake Date.now