aboutsummaryrefslogtreecommitdiff
path: root/test/js/web/fetch/fetch.test.ts
diff options
context:
space:
mode:
authorGravatar Zhongwei Yao <ashi08104@gmail.com> 2023-04-06 14:01:49 -0700
committerGravatar GitHub <noreply@github.com> 2023-04-06 14:01:49 -0700
commit1d138057cb861fe540cfe5ef49905225cee40ae8 (patch)
tree9289a28c1e29a67f68b5d30142026dc56aa9953d /test/js/web/fetch/fetch.test.ts
parentf788519263b5713cd5655a6e3bcf3e3f9b1aea02 (diff)
downloadbun-1d138057cb861fe540cfe5ef49905225cee40ae8.tar.gz
bun-1d138057cb861fe540cfe5ef49905225cee40ae8.tar.zst
bun-1d138057cb861fe540cfe5ef49905225cee40ae8.zip
Add last modify field "mtime" for FileBlob (#1431) (#2491)
* Add lastModified field for FileBlob (#1431) lastModified value is epoch timestamp in millisecond unit. * update according to review comment.
Diffstat (limited to 'test/js/web/fetch/fetch.test.ts')
-rw-r--r--test/js/web/fetch/fetch.test.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/js/web/fetch/fetch.test.ts b/test/js/web/fetch/fetch.test.ts
index 183c5dc77..cc59ba3f6 100644
--- a/test/js/web/fetch/fetch.test.ts
+++ b/test/js/web/fetch/fetch.test.ts
@@ -540,6 +540,7 @@ describe("Bun.file", () => {
writeFileSync(path, buffer);
const file = Bun.file(path);
expect(blob.size).toBe(file.size);
+ expect(file.lastModified).toBeGreaterThan(0);
return file;
});