diff options
author | 2023-02-06 23:15:20 +0100 | |
---|---|---|
committer | 2023-02-06 14:15:20 -0800 | |
commit | fd4668d97cd64ecf6267505eec813b7b31215140 (patch) | |
tree | 9879c5c59d70853f8a8cdcdcc72e88f0fd89d04b /test/bun.js/fs.test.js | |
parent | 8c4ed963ecb5e1118fd14fd6ecbe37c3f3e7eabd (diff) | |
download | bun-fd4668d97cd64ecf6267505eec813b7b31215140.tar.gz bun-fd4668d97cd64ecf6267505eec813b7b31215140.tar.zst bun-fd4668d97cd64ecf6267505eec813b7b31215140.zip |
Expose Dirent and Stats (#1998)
* Expose dirent and stats
* Expose Dirent and Stats inside fs
* Add tests for Dirent and Stats exposing
* Automatically generate bindings
Diffstat (limited to '')
-rw-r--r-- | test/bun.js/fs.test.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/bun.js/fs.test.js b/test/bun.js/fs.test.js index 56f98b32c..f78ce13da 100644 --- a/test/bun.js/fs.test.js +++ b/test/bun.js/fs.test.js @@ -23,6 +23,8 @@ import { unlinkSync, mkdtempSync, constants, + Dirent, + Stats, } from "node:fs"; import { join } from "node:path"; @@ -767,3 +769,12 @@ it("fs.constants", () => { expect(constants.S_IROTH).toBeDefined(); expect(constants.S_IWOTH).toBeDefined(); }); + + +it("fs.Dirent", () => { + expect(Dirent).toBeDefined(); +}); + +it("fs.Stats", () => { + expect(Stats).toBeDefined(); +}); |