mirror of
https://github.com/atom/atom.git
synced 2026-01-26 23:38:48 -05:00
await getCachedPathStatus in specs
This commit is contained in:
@@ -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()
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user