await getCachedPathStatus in specs

This commit is contained in:
Daniel Hengeveld
2015-11-09 16:51:02 +01:00
parent 60c6dc4da3
commit d8985c8175

View File

@@ -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()
})
})