Update window via listener when escape item changes
This commit is contained in:
parent
0501a20fe6
commit
591cd8d073
2 changed files with 21 additions and 11 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue