mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Fix nested Jasmine tests.
You can nest a "describe" in a "describe": describe describe it But you can't nest an "it" in an "it": describe it it The nested "it"s were not getting run (or getting run, but their output ignored, I'm not sure). Before this change: 41 specs, 0 failures After: 44 specs, 5 failures
This commit is contained in:
parent
261ef8f5bc
commit
fce32bf292
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ describe 'ProxyPair', ->
|
||||||
pp.begin()
|
pp.begin()
|
||||||
expect(pp.pc).not.toBeNull()
|
expect(pp.pc).not.toBeNull()
|
||||||
|
|
||||||
it 'accepts WebRTC offer from some client', ->
|
describe 'accepts WebRTC offer from some client', ->
|
||||||
it 'rejects invalid offers', ->
|
it 'rejects invalid offers', ->
|
||||||
expect(pp.receiveWebRTCOffer {}).toBe false
|
expect(pp.receiveWebRTCOffer {}).toBe false
|
||||||
expect pp.receiveWebRTCOffer {
|
expect pp.receiveWebRTCOffer {
|
||||||
|
@ -56,7 +56,7 @@ describe 'ProxyPair', ->
|
||||||
expect(pp.relay.onerror).not.toBeNull()
|
expect(pp.relay.onerror).not.toBeNull()
|
||||||
expect(pp.relay.onmessage).not.toBeNull()
|
expect(pp.relay.onmessage).not.toBeNull()
|
||||||
|
|
||||||
it 'flushes data between client and relay', ->
|
describe 'flushes data between client and relay', ->
|
||||||
|
|
||||||
it 'proxies data from client to relay', ->
|
it 'proxies data from client to relay', ->
|
||||||
spyOn pp.relay, 'send'
|
spyOn pp.relay, 'send'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue