mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 14:11:23 -04:00
Fix the ProxyPair tests exposed by the previous commit.
This was mainly a matter of more complete mocking.
This commit is contained in:
parent
fce32bf292
commit
3cd8519ec9
2 changed files with 33 additions and 8 deletions
|
@ -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: ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue