mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 16:08:24 +03:00
Use /tmp file for non-repo branch label spec
This commit is contained in:
parent
90126d1a9b
commit
7f0091b67e
@ -114,7 +114,7 @@ describe "StatusBar", ->
|
||||
expect(statusBar.branchLabel.text()).toBe 'master'
|
||||
|
||||
it "doesn't display the current branch for a file not in a repository", ->
|
||||
path = require.resolve('fixtures/git/nohead.git/HEAD')
|
||||
path = '/tmp/temp.txt'
|
||||
rootView.open(path)
|
||||
expect(statusBar.branchArea).toBeHidden()
|
||||
expect(statusBar.branchLabel.text()).toBe ''
|
||||
|
Loading…
Reference in New Issue
Block a user