This commit is contained in:
Cheng Zhao 2013-08-25 16:49:54 +08:00
parent d56a7d75de
commit d88676bf65

View file

@ -45,7 +45,8 @@ describe 'protocol API', ->
$.ajax $.ajax
url: 'atom-file-job://' + __filename url: 'atom-file-job://' + __filename
success: (data) -> success: (data) ->
console.log data content = require('fs').readFileSync __filename
assert.equal data, String(content)
done() done()
error: (xhr, errorType, error) -> error: (xhr, errorType, error) ->
assert false, 'Got error: ' + errorType + ' ' + error assert false, 'Got error: ' + errorType + ' ' + error