   mocha
     .reporter(options.reporter or config.test?.reporter or 'spec')
     .ui(config.test?.ui ? 'bdd')
-  testFiles.forEach (file) =>
+  testFiles.forEach (file) ->
     mocha.addFile file
-  mocha.run (failures) =>
+  mocha.run (failures) ->
     process.exit (if failures > 0 then 1 else 0)
 
 # Load the test-helpers.coffee or test-helpers.js file


# Get all <script> files from public/index.html
getScriptFilesPath = (htmlFile, callback) ->
  loadJsdom().env
    html: htmlFile,
    done: (error, window) ->
      throw error if error?

      scripts = window.document.getElementsByTagName('script')
        .toArray()
        .filter (script) ->
          script.src
        .map (script) ->
          script.src

      callback scripts

# Read requires public files
readTestFiles = (publicPath, callback) ->

    throw error if error?

    htmlFile = htmlFile.toString()
    scriptFilesPath = getScriptFilesPath(htmlFile).map getPublicPath
      
    async.map scriptFilesPath, fs.readFile, (error, scriptFiles) ->
      callback error, htmlFile, scriptFiles.map (scriptFile) -> scriptFile.toString()

# Setup JSDom instance with public files
setupJsDom = (publicPath, callback) ->
