14 lines
196 B
JavaScript
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");
|