Fix the ProxyPair tests exposed by the previous commit.

This was mainly a matter of more complete mocking.
This commit is contained in:
David Fifield 2018-12-04 15:07:42 -07:00
parent fce32bf292
commit 3cd8519ec9
2 changed files with 33 additions and 8 deletions

View file

@ -5,11 +5,17 @@ jasmine tests for Snowflake
query = {}
# Fake browser functionality:
class PeerConnection
setRemoteDescription: ->
true
send: (data) ->
class SessionDescription
type: 'offer'
class WebSocket
OPEN: 1
CLOSED: 0
constructor: ->
@bufferedAmount = 0
send: (data) ->
log = ->
class FakeUI
log: ->