             expect(files[0].mode).toEqual '?'
 
       it "returns an array of size 2 when there is an untracked file and an unstaged file", ->
-        spyOn(git, 'cmd').andCallFake () ->
+        spyOn(git, 'cmd').andCallFake ->
           if git.cmd.callCount is 2
             Promise.resolve "untracked.txt"
           else

          expect(files[0].mode).toEqual 'M'

    it "returns an array with size 4 when there are 4 unstaged files", ->
      spyOn(git, 'cmd').andCallFake () ->
        Promise.resolve("M\tsomefile.txt\nA\tfoo.file\nD\tanother.text\nM\tagain.rb")
      waitsForPromise ->
        git.unstagedFiles(mockRepo)

pathToSubmoduleFile = Path.get "~/some/submodule/file"

mockRepo =
  getWorkingDirectory: -> Path.get "~/some/repository"
  refreshStatus: -> undefined
  relativize: (path) -> "directory/file" if path is pathToRepoFile
  repo:
    submoduleForPath: (path) -> undefined

mockSubmodule =
  getWorkingDirectory: -> Path.get "~/some/submodule"
  relativize: (path) -> "file" if path is pathToSubmoduleFile

mockRepoWithSubmodule = Object.create(mockRepo)
