test: move MenuItem spec to main process (#19235)

* test: move MenuItem spec to main process

* spec: fix errant default accel test

* Update menu-item-roles.js

* Update api-menu-item-spec.ts
This commit is contained in:
Jeremy Apthorp 2019-07-16 12:54:18 -07:00 committed by Shelley Vohr
parent 3d2eb8360a
commit 355b307618
3 changed files with 123 additions and 134 deletions

View file

@ -82,7 +82,7 @@ const roles = {
default: return 'Quit'
}
},
accelerator: isWindows ? null : 'CommandOrControl+Q',
accelerator: isWindows ? undefined : 'CommandOrControl+Q',
appMethod: 'quit'
},
redo: {
@ -251,6 +251,8 @@ const roles = {
}
}
exports.roleList = roles
const canExecuteRole = (role) => {
if (!roles.hasOwnProperty(role)) return false
if (!isMac) return true