Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Feb 13, 2024
1 parent 638c3b4 commit e459e8f
Showing 1 changed file with 18 additions and 0 deletions.
@@ -0,0 +1,18 @@
class X {
#privateMethod() {
return 1;
}
#privateMethod2() {
return 2;
}
method1() {
return this.#privateMethod();
}
method2() {
return this.#privateMethod2();
}
}

const x = new X();
expect(x.method1()).toBe(1);
expect(x.method2()).toBe(2);

0 comments on commit e459e8f

Please sign in to comment.