From 85905f989c9480e63ad534c6ff8b1a12dae278eb Mon Sep 17 00:00:00 2001 From: Ulrich Wake <22399181+uulwake@users.noreply.github.com> Date: Thu, 14 Jul 2022 01:53:02 +0700 Subject: [PATCH] fix: `new Date()` such that it works with MockDate library (#688) --- packages/istanbul-reports/lib/html/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/istanbul-reports/lib/html/index.js b/packages/istanbul-reports/lib/html/index.js index 0c279b90..afdc09e9 100644 --- a/packages/istanbul-reports/lib/html/index.js +++ b/packages/istanbul-reports/lib/html/index.js @@ -262,7 +262,7 @@ class HtmlReport extends ReportBase { this.verbose = opts.verbose; this.linkMapper = opts.linkMapper || standardLinkMapper; this.subdir = opts.subdir || ''; - this.date = Date(); + this.date = new Date().toISOString(); this.skipEmpty = opts.skipEmpty; }