From 813e528350a78730375f26d10d6aa1c0659f2f3d Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 22 Jun 2016 15:35:58 -0700 Subject: [PATCH] Update expected accelerator --- spec/api-menu-spec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/api-menu-spec.js b/spec/api-menu-spec.js index 7d1044b..d78b5b4 100644 --- a/spec/api-menu-spec.js +++ b/spec/api-menu-spec.js @@ -400,11 +400,11 @@ describe('menu module', function () { it('includes a default label and accelerator', function () { var item = new MenuItem({role: 'close'}) assert.equal(item.label, 'Close') - assert.equal(item.accelerator, 'CmdOrCtrl+W') + assert.equal(item.accelerator, 'CommandOrControl+W') var item = new MenuItem({role: 'close', label: 'Other'}) assert.equal(item.label, 'Other') - assert.equal(item.accelerator, 'CmdOrCtrl+W') + assert.equal(item.accelerator, 'CommandOrControl+W') var item = new MenuItem({role: 'close', accelerator: 'D'}) assert.equal(item.label, 'Close') @@ -418,9 +418,9 @@ describe('menu module', function () { assert.equal(item.label, 'Help') assert.equal(item.accelerator, undefined) - var item = new MenuItem({role: 'about'}) - assert.equal(item.label, 'About Electron Test') - assert.equal(item.accelerator, undefined) + var item = new MenuItem({role: 'hide'}) + assert.equal(item.label, 'Hide Electron Test') + assert.equal(item.accelerator, 'Command+H') }) }) }) -- 2.7.4