mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
fix gists specs
This commit is contained in:
@@ -16,7 +16,7 @@ describe "CommandPalette", ->
|
||||
afterEach ->
|
||||
rootView.remove()
|
||||
|
||||
fdescribe "when command-palette:toggle is triggered on the root view", ->
|
||||
describe "when command-palette:toggle is triggered on the root view", ->
|
||||
it "shows a list of all valid command descriptions, names, and keybindings for the previously focused element", ->
|
||||
keyBindings = _.losslessInvert(keymap.bindingsForElement(rootView.getActiveEditor()))
|
||||
for eventName, description of rootView.getActiveEditor().events()
|
||||
|
||||
@@ -44,8 +44,8 @@ describe "Gists package", ->
|
||||
expect(pasteboard.read()[0]).toBe 'https://gist.github.com/1'
|
||||
|
||||
it "flashes that the Gist was created", ->
|
||||
expect(rootView.find('.gist-notification')).toExist()
|
||||
expect(rootView.find('.gist-notification .message').text()).toBe 'Gist 1 created'
|
||||
expect(rootView.find('.notification')).toExist()
|
||||
expect(rootView.find('.notification .title').text()).toBe 'Gist 1 created'
|
||||
advanceClock(2000)
|
||||
expect(rootView.find('.gist-notification')).not.toExist()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user