]> khamidou — GitHub mirrors - electron.git/commitdiff
:lipstick:
authorCheng Zhao <zcbenz@gmail.com>
Sun, 25 Aug 2013 08:49:54 +0000 (16:49 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sun, 25 Aug 2013 08:49:54 +0000 (16:49 +0800)
spec/api/protocol.coffee

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