docs: fix typing of message box type value (#38336)
* docs: fix typing of dialog type value * test: add smoke tests * test: update test
This commit is contained in:
parent
a22635bd9f
commit
e138f5f915
3 changed files with 27 additions and 9 deletions
|
@ -97,7 +97,7 @@ describe('dialog module', () => {
|
|||
|
||||
it('throws errors when the options are invalid', () => {
|
||||
expect(() => {
|
||||
dialog.showMessageBox(undefined as any, { type: 'not-a-valid-type', message: '' });
|
||||
dialog.showMessageBox(undefined as any, { type: 'not-a-valid-type' as any, message: '' });
|
||||
}).to.throw(/Invalid message box type/);
|
||||
|
||||
expect(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue