From fb7f2cce9531a70aac3264afa97661819f801298 Mon Sep 17 00:00:00 2001 From: joshaber Date: Wed, 2 Dec 2015 14:23:11 -0500 Subject: [PATCH] These may be called more than once and that's ok. --- spec/git-repository-async-spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/git-repository-async-spec.js b/spec/git-repository-async-spec.js index 19ee38c80..941c1dce3 100644 --- a/spec/git-repository-async-spec.js +++ b/spec/git-repository-async-spec.js @@ -290,7 +290,7 @@ describe('GitRepositoryAsync-js', () => { waitsFor(() => statusHandler.callCount > 0) runs(() => { - expect(statusHandler.callCount).toBe(1) + expect(statusHandler.callCount).toBeGreaterThan(0) expect(statusHandler).toHaveBeenCalledWith({path: editor.getPath(), pathStatus: 256}) }) }) @@ -306,7 +306,7 @@ describe('GitRepositoryAsync-js', () => { waitsFor(() => statusHandler.callCount > 0) runs(() => { - expect(statusHandler.callCount).toBe(1) + expect(statusHandler.callCount).toBeGreaterThan(0) expect(statusHandler).toHaveBeenCalledWith({path: editor.getPath(), pathStatus: 256}) const pathHandler = jasmine.createSpy('pathHandler') @@ -315,7 +315,7 @@ describe('GitRepositoryAsync-js', () => { buffer.emitter.emit('did-change-path') waitsFor(() => pathHandler.callCount > 0) - runs(() => expect(pathHandler.callCount).toBe(1)) + runs(() => expect(pathHandler.callCount).toBeGreaterThan(0)) }) })