mirror of
https://github.com/desktop/desktop
synced 2024-09-18 07:32:01 +00:00
Add test for unsafe repo detection
This commit is contained in:
parent
597930d9dc
commit
d7e079fd37
|
@ -101,5 +101,13 @@ describe('git/rev-parse', () => {
|
|||
kind: 'missing',
|
||||
})
|
||||
})
|
||||
|
||||
it('returns unsafe for unsafe repository', async () => {
|
||||
process.env['GIT_TEST_ASSUME_DIFFERENT_OWNER'] = '1'
|
||||
expect(await getRepositoryType(repository.path)).toMatchObject({
|
||||
kind: 'unsafe',
|
||||
})
|
||||
process.env['GIT_TEST_ASSUME_DIFFERENT_OWNER'] = undefined
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue