10 lines
145 B
JavaScript
10 lines
145 B
JavaScript
class Bar {}
|
|
|
|
class Foo extends Bar {
|
|
constructor() {
|
|
|
|
}
|
|
}
|
|
|
|
expect(() => new Foo()).toThrow(ReferenceError, "this hasn't been initialised");
|