From ee4e6a1ef9f51beaaef5e189302afe1db68ff6c1 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Mon, 27 Apr 2020 20:09:56 +0200 Subject: Rename FileInfo time fields and represent them as Date objects (#4932) This patch also increases the resolution of reported file times to sub-millisecond precision. --- std/node/_fs/_fs_dirent_test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'std/node/_fs') diff --git a/std/node/_fs/_fs_dirent_test.ts b/std/node/_fs/_fs_dirent_test.ts index 548fa6b8a..5288cb3db 100644 --- a/std/node/_fs/_fs_dirent_test.ts +++ b/std/node/_fs/_fs_dirent_test.ts @@ -7,9 +7,9 @@ class DirEntryMock implements Deno.DirEntry { isDirectory = false; isSymlink = false; size = -1; - modified = -1; - accessed = -1; - created = -1; + mtime = new Date(-1); + atime = new Date(-1); + birthtime = new Date(-1); name = ""; dev = -1; ino = -1; -- cgit v1.2.3