mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
We don't actually use repo
.
This commit is contained in:
parent
a2ab84c3e6
commit
b234f8481d
@ -31,7 +31,7 @@ describe('GitRepositoryAsync', () => {
|
||||
})
|
||||
|
||||
describe('@open(path)', () => {
|
||||
it('repo is null when no repository is found', async () => {
|
||||
it('should throw when no repository is found', async () => {
|
||||
repo = GitRepositoryAsync.open(path.join(temp.dir, 'nogit.txt'))
|
||||
|
||||
let threw = false
|
||||
@ -42,7 +42,6 @@ describe('GitRepositoryAsync', () => {
|
||||
}
|
||||
|
||||
expect(threw).toBe(true)
|
||||
expect(repo.repo).toBe(null)
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -30,7 +30,6 @@ export default class GitRepositoryAsync {
|
||||
}
|
||||
|
||||
constructor (_path, options = {}) {
|
||||
this.repo = null
|
||||
this.emitter = new Emitter()
|
||||
this.subscriptions = new CompositeDisposable()
|
||||
this.pathStatusCache = {}
|
||||
|
Loading…
Reference in New Issue
Block a user