🐛 Allow buttons to be optional in 'showMessageBox'

This commit is contained in:
Daniel Pham 2016-12-12 13:05:01 -05:00
parent 2fa9ca1f6d
commit 4b53cd9c3c
2 changed files with 7 additions and 7 deletions

View file

@ -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/)
})
})