pulsar/spec/atom-protocol-handler-spec.coffee

10 lines
338 B
CoffeeScript
Raw Normal View History

2013-09-14 11:00:19 +04:00
describe '"atom" protocol URL', ->
it 'sends the file relative in the package as response', ->
called = false
2015-09-05 19:11:35 +03:00
request = new XMLHttpRequest()
request.addEventListener('load', -> called = true)
request.open('GET', 'atom://async/package.json', true)
request.send()
2013-09-14 11:00:19 +04:00
waitsFor 'request to be done', -> called is true