neft
Version:
Universal Platform
28 lines (21 loc) • 737 B
text/coffeescript
{Networking, utils} = Neft
{Impl} = Networking
Networking.Impl =
init: ->
describe 'Networking', ->
beforeEach ->
=
type: Networking.HTTP
protocol: 'http'
port: 3000
host: 'localhost'
language: 'en'
describe 'option.allowAllOrigins', ->
it 'is false by default', ->
assert.is new Networking().allowAllOrigins, false
utils.merge , {allowAllOrigins: null}
assert.is new Networking().allowAllOrigins, false
it 'can be set to true', ->
utils.merge , {allowAllOrigins: true}
assert.is new Networking().allowAllOrigins, true