diff options
author | 2023-08-20 19:22:55 -0700 | |
---|---|---|
committer | 2023-08-20 19:22:55 -0700 | |
commit | 65280853acf2385eae124ef4870af2751ad662df (patch) | |
tree | 358bf3d99d5391f2e89269424af309c5a156425a /test | |
parent | 3a9a6c63ac58564d8bae126a3edfc368ca4be671 (diff) | |
download | bun-65280853acf2385eae124ef4870af2751ad662df.tar.gz bun-65280853acf2385eae124ef4870af2751ad662df.tar.zst bun-65280853acf2385eae124ef4870af2751ad662df.zip |
Fix test failures from 3a9a6c63a (#4231)
cc @Hanaasagi
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/js/node/stubs.test.js | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/test/js/node/stubs.test.js b/test/js/node/stubs.test.js index 11d8edbd9..057215c4f 100644 --- a/test/js/node/stubs.test.js +++ b/test/js/node/stubs.test.js @@ -89,24 +89,7 @@ for (let specifier of specifiers) { if ("default" in mod) { expect(mod).toHaveProperty("default"); } else { - // TODO: uncomment this after node:module can be default imported - // throw new Error(`Module ${specifier} has no default export`); + throw new Error(`Module ${specifier} has no default export`); } }); } - -// TODO: when node:vm is implemented, delete this test. -test("node:vm", () => { - const { Script } = import.meta.require("node:vm"); - try { - // **This line should appear in the stack trace** - // That way it shows the "real" line causing the issue - // Instead of several layers of wrapping - new Script("1 + 1"); - throw new Error("unreacahble"); - } catch (e) { - const msg = Bun.inspect(e); - expect(msg).not.toContain("node:vm:"); - expect(msg).toContain("**This line should appear in the stack trace**"); - } -}); |