aboutsummaryrefslogtreecommitdiff
path: root/test/js/node/stubs.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/js/node/stubs.test.js')
-rw-r--r--test/js/node/stubs.test.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/js/node/stubs.test.js b/test/js/node/stubs.test.js
index 1025907ab..11d8edbd9 100644
--- a/test/js/node/stubs.test.js
+++ b/test/js/node/stubs.test.js
@@ -88,17 +88,6 @@ for (let specifier of specifiers) {
const mod = await import(specifier);
if ("default" in mod) {
expect(mod).toHaveProperty("default");
- const cjs = mod.default[Symbol.for("CommonJS")];
- if (typeof cjs !== "undefined") {
- if (cjs === 1) {
- expect(typeof mod.default).toBe("function");
- } else if (cjs === true) {
- expect(cjs).toBe(true);
- if (typeof mod.default !== "undefined") {
- expect(typeof mod.default).toBe("function");
- }
- }
- }
} else {
// TODO: uncomment this after node:module can be default imported
// throw new Error(`Module ${specifier} has no default export`);