Update window via listener when escape item changes

This commit is contained in:
Kevin Sawicki 2017-03-29 13:11:25 -07:00
parent 0501a20fe6
commit 591cd8d073
2 changed files with 21 additions and 11 deletions

View file

@ -20,6 +20,13 @@ describe('TouchBar module', function () {
}, /Each item must be an instance of TouchBarItem/)
})
it('throws an error when an invalid escape item is set', function () {
assert.throws(() => {
const touchBar = new TouchBar([])
touchBar.setEscapeItem('esc')
}, /Escape item must be an instance of TouchBarItem/)
})
describe('BrowserWindow behavior', function () {
let window