OK, so we can also get rid of the anonymous function here; however, we'd need to use `Function.prototype.bind` to get what we are after in this case (since we are passing parameters):

```js
expect(buffer.write.bind(null, 'A')).toThrowError(BufferFullException)
```