Test with some null/undefined windows
This commit is contained in:
parent
cb7715a572
commit
c108088110
1 changed files with 2 additions and 2 deletions
|
@ -41,11 +41,11 @@ describe('dialog module', () => {
|
||||||
describe('showMessageBox', () => {
|
describe('showMessageBox', () => {
|
||||||
it('throws errors when the options are invalid', () => {
|
it('throws errors when the options are invalid', () => {
|
||||||
assert.throws(() => {
|
assert.throws(() => {
|
||||||
dialog.showMessageBox({type: 'not-a-valid-type'})
|
dialog.showMessageBox(undefined, {type: 'not-a-valid-type'})
|
||||||
}, /Invalid message box type/)
|
}, /Invalid message box type/)
|
||||||
|
|
||||||
assert.throws(() => {
|
assert.throws(() => {
|
||||||
dialog.showMessageBox({buttons: false})
|
dialog.showMessageBox(null, {buttons: false})
|
||||||
}, /Buttons must be an array/)
|
}, /Buttons must be an array/)
|
||||||
|
|
||||||
assert.throws(() => {
|
assert.throws(() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue