I think we are complicating the property definition here. It should be
```js
MockRequest.prototype = {
  set onsuccess(successCb) {
    successCb();
  }
}
```