doc: add missing MenuItem roles (#19329)

This commit is contained in:
Shelley Vohr 2019-07-31 14:13:56 -07:00 committed by GitHub
parent bf66fe51f6
commit a5f87cee6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 62 additions and 14 deletions

View file

@ -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')