Fix overly-specific assertion

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
This commit is contained in:
Jason Rudolph
2018-07-20 15:12:53 -04:00
parent 55da0d8f5d
commit 2a5f7e20c3

View File

@@ -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()
})