mirror of
https://github.com/atom/atom.git
synced 2026-01-21 04:48:12 -05:00
✅ 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:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user