mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Tightened up a test now that I confirmed that MenuHelpers.merge() intentionally strips the created field.
This commit is contained in:
@@ -158,14 +158,13 @@ describe "ContextMenuManager", ->
|
||||
expect(addError.message).toContain('<>')
|
||||
|
||||
it "recursively applies templateForEvent on submenu items", ->
|
||||
created = (event) -> @label = 'D'
|
||||
item = {
|
||||
label: 'A',
|
||||
command: 'B',
|
||||
submenu: [
|
||||
{
|
||||
label: 'C',
|
||||
created,
|
||||
created: (event) -> @label = 'D',
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user