From 11fb5080397862e7ee54c887162dff1ada855230 Mon Sep 17 00:00:00 2001 From: joshaber Date: Wed, 2 Dec 2015 14:22:57 -0500 Subject: [PATCH] :fire: all the disabled tests. --- spec/git-repository-async-spec.js | 35 ------------------------------- 1 file changed, 35 deletions(-) diff --git a/spec/git-repository-async-spec.js b/spec/git-repository-async-spec.js index 829c33fcd..19ee38c80 100644 --- a/spec/git-repository-async-spec.js +++ b/spec/git-repository-async-spec.js @@ -47,8 +47,6 @@ describe('GitRepositoryAsync-js', () => { }) describe('.getPath()', () => { - xit('returns the repository path for a .git directory path') - it('returns the repository path for a repository path', async () => { repo = openFixture('master.git') const repoPath = await repo.getPath() @@ -181,39 +179,6 @@ describe('GitRepositoryAsync-js', () => { }) }) - xdescribe('.checkoutHeadForEditor(editor)', () => { - let filePath, editor - - beforeEach(() => { - const workingDirPath = copyRepository() - repo = GitRepositoryAsync.open(workingDirPath) - filePath = path.join(workingDirPath, 'a.txt') - fs.writeFileSync(filePath, 'ch ch changes') - - waitsForPromise(() => atom.workspace.open(filePath)) - runs(() => editor = atom.workspace.getActiveTextEditor()) - }) - - xit('displays a confirmation dialog by default', () => { - spyOn(atom, 'confirm').andCallFake(buttons, () => buttons[0].OK()) // eslint-disable-line - atom.config.set('editor.confirmCheckoutHeadRevision', true) - - waitsForPromise(() => repo.checkoutHeadForEditor(editor)) - runs(() => expect(fs.readFileSync(filePath, 'utf8')).toBe('')) - }) - - xit('does not display a dialog when confirmation is disabled', () => { - spyOn(atom, 'confirm') - atom.config.set('editor.confirmCheckoutHeadRevision', false) - - waitsForPromise(() => repo.checkoutHeadForEditor(editor)) - runs(() => { - expect(fs.readFileSync(filePath, 'utf8')).toBe('') - expect(atom.confirm).not.toHaveBeenCalled() - }) - }) - }) - describe('.getPathStatus(path)', () => { let filePath