mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 14:11:23 -04:00
more jasmine specs for proxypair, ui, and snowflake coffee files
This commit is contained in:
parent
e0081ea954
commit
547cb9690a
9 changed files with 159 additions and 56 deletions
|
@ -1,17 +1,7 @@
|
|||
###
|
||||
jasmine tests for Snowflake
|
||||
jasmine tests for Snowflake utils
|
||||
###
|
||||
|
||||
# Stubs to fake browser functionality.
|
||||
class PeerConnection
|
||||
class WebSocket
|
||||
OPEN: 1
|
||||
CLOSED: 0
|
||||
ui =
|
||||
log: ->
|
||||
setActive: ->
|
||||
log = ->
|
||||
|
||||
describe 'BuildUrl', ->
|
||||
it 'should parse just protocol and host', ->
|
||||
expect(buildUrl('http', 'example.com')).toBe 'http://example.com'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue