mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
14 lines
153 B
JavaScript
14 lines
153 B
JavaScript
class Cl {
|
|
async #foo() {
|
|
return 2;
|
|
}
|
|
|
|
test() {
|
|
return this.#foo();
|
|
}
|
|
}
|
|
|
|
return new Cl().test().then(val => {
|
|
expect(val).toBe(2);
|
|
});
|