This commit is contained in:
joshaber 2016-04-26 09:39:19 -04:00
Родитель d7c1f296bc
Коммит 5ad922f194
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -723,6 +723,18 @@ describe('Repository', () => {
})
})
describe('.getOriginURL()', () => {
beforeEach(() => {
const workingDirectory = copyRepository('repo-with-submodules')
repo = Repository.open(workingDirectory)
})
it('returns the origin URL', async () => {
const url = await repo.getOriginURL()
expect(url).toBe('git@github.com:atom/some-repo-i-guess.git')
})
})
describe('.getUpstreamBranch()', () => {
it('returns null when there is no upstream branch', async () => {
const workingDirectory = copyRepository()