2018-03-24 16:22:20 +05:30

14 lines
196 B
JavaScript

class Bar {
test() {}
}
class Foo extends Bar {
constructor() {
const t = () => super.test()
t();
super();
}
}
expect(() => new Foo()).toThrow("this hasn't been initialised");