diff --git a/spec/git-repository-async-spec.js b/spec/git-repository-async-spec.js index 7543430e7..f8a12fb4f 100644 --- a/spec/git-repository-async-spec.js +++ b/spec/git-repository-async-spec.js @@ -293,9 +293,9 @@ fdescribe('GitRepositoryAsync-js', () => { fs.writeFileSync(modifiedPath, 'making this path modified') await repo.refreshStatus() - expect(repo.getCachedPathStatus(cleanPath)).toBeUndefined() - expect(repo.isStatusNew(repo.getCachedPathStatus(newPath))).toBeTruthy() - expect(repo.isStatusModified(repo.getCachedPathStatus(modifiedPath))).toBeTruthy() + expect(await repo.getCachedPathStatus(cleanPath)).toBeUndefined() + expect(repo.isStatusNew(await repo.getCachedPathStatus(newPath))).toBeTruthy() + expect(repo.isStatusModified(await repo.getCachedPathStatus(modifiedPath))).toBeTruthy() }) })