summaryrefslogtreecommitdiff
path: root/test/fixtures/cycles/warning-moduleexports-class-a.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixtures/cycles/warning-moduleexports-class-a.js')
-rw-r--r--test/fixtures/cycles/warning-moduleexports-class-a.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/fixtures/cycles/warning-moduleexports-class-a.js b/test/fixtures/cycles/warning-moduleexports-class-a.js
new file mode 100644
index 0000000000..e23654d7f3
--- /dev/null
+++ b/test/fixtures/cycles/warning-moduleexports-class-a.js
@@ -0,0 +1,11 @@
+const assert = require('assert');
+
+class Parent {}
+class A extends Parent {}
+
+module.exports = A;
+require('./warning-moduleexports-class-b.js');
+process.nextTick(() => {
+ assert.strictEqual(module.exports, A);
+ assert.strictEqual(Object.getPrototypeOf(module.exports), Parent);
+});