mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-29 11:52:34 +08:00
16 lines
511 B
CoffeeScript
16 lines
511 B
CoffeeScript
|
{$} = require '../src/space-pen-extensions'
|
||
|
|
||
|
describe '"atom" protocol URL', ->
|
||
|
it 'sends the file relative in the package as response', ->
|
||
|
called = false
|
||
|
callback = -> called = true
|
||
|
$.ajax
|
||
|
url: 'atom://async/package.json'
|
||
|
success: callback
|
||
|
# In old versions of jQuery, ajax calls to custom protocol would always
|
||
|
# be treated as error eventhough the browser thinks it's a success
|
||
|
# request.
|
||
|
error: callback
|
||
|
|
||
|
waitsFor 'request to be done', -> called is true
|