mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Move querystring access to init
This commit is contained in:
parent
3839c2e0b1
commit
edbbea1d03
3 changed files with 11 additions and 13 deletions
|
@ -2,7 +2,6 @@
|
|||
jasmine tests for Snowflake
|
||||
###
|
||||
|
||||
query = {}
|
||||
# Fake browser functionality:
|
||||
class PeerConnection
|
||||
setRemoteDescription: ->
|
||||
|
@ -31,7 +30,6 @@ describe 'Snowflake', ->
|
|||
|
||||
it 'constructs correctly', ->
|
||||
s = new Snowflake({ fake: 'broker' }, fakeUI)
|
||||
query['ratelimit'] = 'off'
|
||||
expect(s.rateLimit).not.toBeNull()
|
||||
expect(s.broker).toEqual { fake: 'broker' }
|
||||
expect(s.ui).not.toBeNull()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue