       passing = true
       for test in data
         passing = passing && test.passing
-      # call back with extra pass/fail parameter
+      # Call back with extra pass/fail parameter
       callback?(null, data, passing)
 
   getTests: (callback) ->

https = require 'https'

# Define GhostInspector clas
class GhostInspector
  host:   'api.ghostinspector.com'
  prefix: '/v1'

  executeTest: (testId, callback) ->
    @execute '/tests/' + testId + '/execute/', (err, data) ->
      if err then return callback?(err)
      # Call back with extra pass/fail parameter
      callback?(null, data, data.passing)

  getResult: (resultId, callback) ->
    @execute '/results/' + resultId + '/', callback

# Export new GhostInspector instance
module.exports = (userId, apiKey) ->
  return new GhostInspector(userId, apiKey)