Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu authored and nicolo-ribaudo committed Feb 14, 2024
1 parent d8aeddd commit 78d920a
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 78d920a

Please sign in to comment.