diff options
author | 2023-04-06 18:55:23 -0400 | |
---|---|---|
committer | 2023-04-06 15:55:23 -0700 | |
commit | e4e81bc49ec7a0ea645b038d9f0978404e85495b (patch) | |
tree | 7ea6b12acf1ab06caea60da3da6062466682137d /test | |
parent | b8aca35b76ea30cd15d038a498d2ecc2dc8d5133 (diff) | |
download | bun-e4e81bc49ec7a0ea645b038d9f0978404e85495b.tar.gz bun-e4e81bc49ec7a0ea645b038d9f0978404e85495b.tar.zst bun-e4e81bc49ec7a0ea645b038d9f0978404e85495b.zip |
fix: export `constants` from `fs/promises` (#2567)
* fix: export `constants` from `fs/promises`
* fix type tests
* third time's the charm fixing the typedef
* run fmt
* remove injected constant from fs, re-exporting from fs/promises
Diffstat (limited to 'test')
-rw-r--r-- | test/js/node/fs/fs.test.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/js/node/fs/fs.test.ts b/test/js/node/fs/fs.test.ts index f7b343539..83739837c 100644 --- a/test/js/node/fs/fs.test.ts +++ b/test/js/node/fs/fs.test.ts @@ -1093,6 +1093,11 @@ it("fs.constants", () => { expect(constants.S_IWOTH).toBeDefined(); }); +it("fs.promises.constants", () => { + expect(promises.constants).toBeDefined(); + expect(promises.constants).toBe(fs.constants); +}); + it("fs.Dirent", () => { expect(Dirent).toBeDefined(); }); |