From 95b3ac806f3b72c0d854e71a4009eef5495c8fd6 Mon Sep 17 00:00:00 2001 From: Daniel Hengeveld Date: Tue, 20 Oct 2015 16:42:20 +0200 Subject: [PATCH] un-nest waitsForPromise --- spec/git-repository-async-spec.coffee | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/git-repository-async-spec.coffee b/spec/git-repository-async-spec.coffee index 581872053..8ca7c861f 100644 --- a/spec/git-repository-async-spec.coffee +++ b/spec/git-repository-async-spec.coffee @@ -182,13 +182,13 @@ describe "GitRepositoryAsync", -> # fail if it was rejected.. waitsForPromise -> repo.checkoutHead(filePath) - runs -> onSuccess = jasmine.createSpy('onSuccess') - waitsForPromise -> - repo.isPathModified(filePath).then(onSuccess) - runs -> - expect(onSuccess.mostRecentCall.args[0]).toBeFalsy() + + waitsForPromise -> + repo.isPathModified(filePath).then(onSuccess) + runs -> + expect(onSuccess.mostRecentCall.args[0]).toBeFalsy() it "restores the contents of the path to the original text", -> fs.writeFileSync(filePath, 'ch ch changes')