Skip to content

Commit

Permalink
test: added
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed May 22, 2023
1 parent 62af1b5 commit ff2abe5
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/cases/inner-graph/extend-class/a.js
@@ -0,0 +1,12 @@
import B from "./b.js";

export default class A extends B {
constructor() {
super();
}
test() {
super.test();

this.b = new B();
}
}
8 changes: 8 additions & 0 deletions test/cases/inner-graph/extend-class/b.js
@@ -0,0 +1,8 @@
import A from "./a.js";

export default class B {
constructor() {}
test() {
this.a = new A();
}
}
1 change: 1 addition & 0 deletions test/cases/inner-graph/extend-class/index.js
Expand Up @@ -13,6 +13,7 @@ import {
it("should load modules correctly", () => {
require("./module1");
require("./module2");
require("./module3");
});

if (process.env.NODE_ENV === "production") {
Expand Down
3 changes: 3 additions & 0 deletions test/cases/inner-graph/extend-class/module3.js
@@ -0,0 +1,3 @@
import A from "./a.js";
let a = new A();
a.test();

0 comments on commit ff2abe5

Please sign in to comment.