mirror of
https://github.com/atom/atom.git
synced 2026-01-26 07:19:06 -05:00
Cleanup
This commit is contained in:
@@ -4,12 +4,11 @@ const fs = require('fs-plus')
|
||||
const path = require('path')
|
||||
const temp = require('temp')
|
||||
const Git = require('nodegit')
|
||||
const CompositeDisposable = require('event-kit').CompositeDisposable
|
||||
|
||||
temp.track()
|
||||
|
||||
const GitRepositoryAsync = require('../src/git-repository-async')
|
||||
|
||||
temp.track()
|
||||
|
||||
function openFixture(fixture) {
|
||||
return GitRepositoryAsync.open(path.join(__dirname, 'fixtures', 'git', fixture))
|
||||
}
|
||||
@@ -302,7 +301,8 @@ fdescribe('GitRepositoryAsync-js', () => {
|
||||
|
||||
describe('buffer events', () => {
|
||||
beforeEach(() => {
|
||||
atom.project.setPaths([copyRepository()])
|
||||
const workingDirectory = copyRepository()
|
||||
atom.project.setPaths([workingDirectory])
|
||||
|
||||
// When the path is added to the project, the repository is refreshed. We
|
||||
// need to wait for that to complete before the tests continue so that
|
||||
|
||||
Reference in New Issue
Block a user