This test is not at the right place. The actual test is to verify that the datachannel is setup when receiving a datachannel connection. Thus it does not test the method itself (the proof is the method is stubbed).

I think it belongs to the constructor tests (and you probably want to test the `dc.in.ready` event too).

The content of the test is good though.