🐛 Allow buttons to be optional in 'showMessageBox'
This commit is contained in:
parent
2fa9ca1f6d
commit
4b53cd9c3c
2 changed files with 7 additions and 7 deletions
|
@ -49,15 +49,15 @@ describe('dialog module', () => {
|
|||
}, /Buttons must be an array/)
|
||||
|
||||
assert.throws(() => {
|
||||
dialog.showMessageBox({title: 300, buttons: ['OK']})
|
||||
dialog.showMessageBox({title: 300})
|
||||
}, /Title must be a string/)
|
||||
|
||||
assert.throws(() => {
|
||||
dialog.showMessageBox({message: [], buttons: ['OK']})
|
||||
dialog.showMessageBox({message: []})
|
||||
}, /Message must be a string/)
|
||||
|
||||
assert.throws(() => {
|
||||
dialog.showMessageBox({detail: 3.14, buttons: ['OK']})
|
||||
dialog.showMessageBox({detail: 3.14})
|
||||
}, /Detail must be a string/)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue