mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Verify icon text in status label specs
This commit is contained in:
@@ -137,12 +137,12 @@ describe "StatusBar", ->
|
||||
it "displays the modified icon for a changed file", ->
|
||||
fs.write(path, "i've changed for the worse")
|
||||
rootView.open(path)
|
||||
expect(statusBar.gitStatusIcon).toBeVisible()
|
||||
expect(statusBar.gitStatusIcon).toHaveText('\uf26d')
|
||||
|
||||
it "doesn't display the modified icon for an unchanged file", ->
|
||||
rootView.open(path)
|
||||
expect(statusBar.gitStatusIcon).toBeHidden()
|
||||
expect(statusBar.gitStatusIcon).toHaveText('')
|
||||
|
||||
it "displays the new icon for a new file", ->
|
||||
rootView.open(newPath)
|
||||
expect(statusBar.gitStatusIcon).toBeVisible()
|
||||
expect(statusBar.gitStatusIcon).toHaveText('\uf26b')
|
||||
|
||||
Reference in New Issue
Block a user