Skip to content

Commit

Permalink
Update spec
Browse files Browse the repository at this point in the history
  • Loading branch information
nitsakh committed Oct 20, 2018
1 parent 169a268 commit a7ef8a1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion spec/api-menu-spec.js
Expand Up @@ -721,8 +721,19 @@ describe('Menu module', () => {
Menu.setApplicationMenu(null)
expect(Menu.getApplicationMenu()).to.be.null()
})
})

it('provides working menu accelerators', (done) => {
describe('menu accelerators', () => {
let testFn = it
try {
// We have other tests that check if native modules work, if we fail to require
// robotjs let's skip this test to avoid false negatives
require('robotjs')
} catch (err) {
testFn = it.skip
}

testFn('menu accelerators perform the specified action', (done) => {
const menu = Menu.buildFromTemplate([
{
label: 'Test',
Expand Down

0 comments on commit a7ef8a1

Please sign in to comment.