more jasmine specs for proxypair, ui, and snowflake coffee files

This commit is contained in:
Serene Han 2016-02-07 08:32:41 -08:00
parent e0081ea954
commit 547cb9690a
9 changed files with 159 additions and 56 deletions

View file

@ -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'