mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Fix CommandRegistry::findCommands spec
Don’t assert against commands registered on the window with jQuery
This commit is contained in:
@@ -119,7 +119,7 @@ describe "CommandRegistry", ->
|
||||
registry.add '.grandchild', 'namespace:command-3', ->
|
||||
registry.add '.grandchild.no-match', 'namespace:command-4', ->
|
||||
|
||||
expect(registry.findCommands(target: grandchild)).toEqual [
|
||||
expect(registry.findCommands(target: grandchild)[0..2]).toEqual [
|
||||
{name: 'namespace:command-3', displayName: 'Namespace: Command 3'}
|
||||
{name: 'namespace:command-2', displayName: 'Namespace: Command 2'}
|
||||
{name: 'namespace:command-1', displayName: 'Namespace: Command 1'}
|
||||
|
||||
Reference in New Issue
Block a user