mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Add spec for invalid menu item type
This commit is contained in:
@@ -70,7 +70,7 @@ const MenuItem = function (options) {
|
||||
this.overrideProperty('checked', false)
|
||||
|
||||
if (!MenuItem.types.includes(this.type)) {
|
||||
throw new Error(`Unknown menu type ${this.type}`)
|
||||
throw new Error(`Unknown menu item type: ${this.type}`)
|
||||
}
|
||||
|
||||
this.commandId = ++nextCommandId
|
||||
|
||||
Reference in New Issue
Block a user