11 lines
158 B
JavaScript
11 lines
158 B
JavaScript
class Bar {}
|
|
|
|
class Foo extends Bar {
|
|
constructor() {
|
|
super.foo();
|
|
super();
|
|
}
|
|
}
|
|
|
|
expect(() => new Foo()).toThrow("this hasn't been initialised");
|