From 009951e757ced8d4927d049ebdd210dfd16df525 Mon Sep 17 00:00:00 2001 From: joshaber Date: Fri, 6 Nov 2015 14:18:59 -0500 Subject: [PATCH] Get these tests going. --- spec/git-repository-async-spec.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/spec/git-repository-async-spec.js b/spec/git-repository-async-spec.js index c9f9bc9d5..2a34a83b8 100644 --- a/spec/git-repository-async-spec.js +++ b/spec/git-repository-async-spec.js @@ -4,10 +4,12 @@ const fs = require('fs-plus') const path = require('path') const temp = require('temp') +temp.track() + const GitRepositoryAsync = require('../src/git-repository-async') const openFixture = (fixture) => { - GitRepositoryAsync.open(path.join(__dirname, 'fixtures', 'git', fixture)) + return GitRepositoryAsync.open(path.join(__dirname, 'fixtures', 'git', fixture)) } const copyRepository = () => { @@ -18,7 +20,7 @@ const copyRepository = () => { } -describe('GitRepositoryAsync', () => { +fdescribe('GitRepositoryAsync', () => { describe('@open(path)', () => { it('repo is null when no repository is found', () => { let repo = GitRepositoryAsync.open(path.join(temp.dir, 'nogit.txt')) @@ -39,7 +41,7 @@ describe('GitRepositoryAsync', () => { it('returns the repository path for a repository path', () => { let repo = openFixture('master.git') let onSuccess = jasmine.createSpy('onSuccess') - waitsForPromise(repo.getPath().then(onSuccess)) + waitsForPromise(() => repo.getPath().then(onSuccess)) runs(() => { expect(onSuccess.mostRecentCall.args[0]).toBe( @@ -49,7 +51,7 @@ describe('GitRepositoryAsync', () => { }) }) - fdescribe('buffer events', () => { + describe('buffer events', () => { beforeEach(() => { // This is sync, should be fine in a beforeEach atom.project.setPaths([copyRepository()])