   afterEach ->
     waitsForPromise -> driver.quit().thenFinally(-> chromeDriver.kill())
 
-  startAtom = (args=[]) ->
+  startAtom = (args...) ->
     driver = new Builder()
       .usingServer("http://localhost:#{ChromeDriverPort}")
       .withCapabilities(

    beforeEach ->
      tempFilePath = path.join(tempDirPath, "an-existing-file")
      fs.writeFileSync(tempFilePath, "This was already here.")
      startAtom([path.join(tempDirPath, "new-file")])

    it "opens a new window with an empty text editor", ->
      waitsForPromise ->

      # Opening another existing file in the same directory reuses the window,
      # and opens a new tab for the file.
      waitsForPromise ->
        startAnotherAtom(tempFilePath)
        driver.wait ->
          driver.executeScript(-> atom.workspace.getActivePane().getItems().length).then (length) ->
            length is 2
