indentation nit: 
```javascript
this.sinon.stub(
  FakePort.prototype, 'postMessage',
  function() {
    ...
  }
);
```