2019-03-13 00:11:16 +01:00

12 lines
203 B
JavaScript

class Cl {
static #privateStaticMethod() {
return 1017;
}
publicMethod(checked) {
return checked.#privateStaticMethod();
}
}
const cl = new Cl();
expect(cl.publicMethod(Cl)).toBe(1017);