Move querystring access to init

This commit is contained in:
Arlo Breault 2019-05-08 14:08:22 -04:00
parent 3839c2e0b1
commit edbbea1d03
3 changed files with 11 additions and 13 deletions

View file

@ -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()