Can you use the `toThrow` matcher here instead of mimicking?

```
expect( foo.parse(bar) ).toThrow( new Error("Parse error!") );
```