Files

15 lines
197 B
JavaScript

class Foo {
#client
constructor(props) {
({x: this.#client = 5} = props);
}
getClient() {
return this.#client;
}
}
const foo = new Foo({});
expect(foo.getClient()).toEqual(5);