From 2a5f7e20c358c6534f4a383feabcc1068cb8c44b Mon Sep 17 00:00:00 2001 From: Jason Rudolph Date: Fri, 20 Jul 2018 15:12:53 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Fix=20overly-specific=20assertion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes failing assertions [1] that unnecessarily assumed that the repository was cloned using `https://github.com/atom/atom.git` as the URL, as opposed to `git@github.com:atom/atom.git` as the URL. [1] https://circleci.com/gh/atom/atom/7981 --- spec/project-spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/project-spec.js b/spec/project-spec.js index b28967eca..e7601253c 100644 --- a/spec/project-spec.js +++ b/spec/project-spec.js @@ -1003,7 +1003,7 @@ describe('Project', () => { const repositoryPath = path.join(__dirname, '..') atom.project.addPath(repositoryPath) expect(observed.length).toBe(1) - expect(observed[0].getOriginURL()).toContain('github.com/atom/atom') + expect(observed[0].getOriginURL()).toContain('atom/atom') disposable.dispose() }) @@ -1014,7 +1014,7 @@ describe('Project', () => { atom.project.addPath(__dirname) expect(observed.length).toBe(1) - expect(observed[0].getOriginURL()).toContain('github.com/atom/atom') + expect(observed[0].getOriginURL()).toContain('atom/atom') disposable.dispose() })