Use fs.renameSync in Workspace spec to fix test failure

This commit is contained in:
David Wilson
2019-01-03 15:32:41 -08:00
committed by David Wilson
parent 8eccaf2d5d
commit eee7ae8abe

View File

@@ -2086,7 +2086,7 @@ describe('Workspace', () => {
})
runs(() => {
fs.rename(path.join(projectPath, 'git.git'), path.join(projectPath, '.git'))
fs.renameSync(path.join(projectPath, 'git.git'), path.join(projectPath, '.git'))
ignoredPath = path.join(projectPath, 'ignored.txt')
fs.writeFileSync(ignoredPath, 'this match should not be included')
})