mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
fixes to spec
This commit is contained in:
@@ -15,15 +15,14 @@ describe "ContextMenuManager", ->
|
||||
'label': 'command'
|
||||
|
||||
expect(contextMenu.definitions['.selector'][0].label).toEqual 'label'
|
||||
expect(contextMenu.definitions['.selector'][0].command).toEqual 'command'
|
||||
expect(contextMenu.definitions['.selector'][0].commandOrSubmenu).toEqual 'command'
|
||||
|
||||
it "loads submenus", ->
|
||||
contextMenu.add 'file-path',
|
||||
'.selector':
|
||||
'parent': [
|
||||
'parent':
|
||||
'child-1': 'child-1:trigger'
|
||||
'child-2': 'child-1:trigger'
|
||||
]
|
||||
'parent-2': 'parent-2:trigger'
|
||||
|
||||
describe 'dev mode', ->
|
||||
@@ -34,7 +33,7 @@ describe "ContextMenuManager", ->
|
||||
, devMode: true
|
||||
|
||||
expect(contextMenu.devModeDefinitions['.selector'][0].label).toEqual 'label'
|
||||
expect(contextMenu.devModeDefinitions['.selector'][0].command).toEqual 'command'
|
||||
expect(contextMenu.devModeDefinitions['.selector'][0].commandOrSubmenu).toEqual 'command'
|
||||
|
||||
describe "building a menu template", ->
|
||||
beforeEach ->
|
||||
|
||||
Reference in New Issue
Block a user