doc: add missing MenuItem roles (#19329)
This commit is contained in:
parent
bf66fe51f6
commit
a5f87cee6b
5 changed files with 62 additions and 14 deletions
|
@ -190,7 +190,7 @@ describe('MenuItems', () => {
|
|||
|
||||
it('execute roles with non-native role functions', () => {
|
||||
const win = new BrowserWindow({ show: false, width: 200, height: 200 })
|
||||
const item = new MenuItem({ role: 'resetzoom' })
|
||||
const item = new MenuItem({ role: 'resetZoom' })
|
||||
|
||||
const canExecute = execute(item.role, win, win.webContents)
|
||||
expect(canExecute).to.be.true('can execute')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue