From 51b15a6c00414da450099252bf61cf8cc3da6544 Mon Sep 17 00:00:00 2001 From: joshaber Date: Mon, 9 Nov 2015 12:42:12 -0500 Subject: [PATCH] Cleanup --- spec/git-repository-async-spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/git-repository-async-spec.js b/spec/git-repository-async-spec.js index 8b02c86c6..106d02540 100644 --- a/spec/git-repository-async-spec.js +++ b/spec/git-repository-async-spec.js @@ -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