We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a62ea90 commit eec5af0Copy full SHA for eec5af0
1 file changed
test/electron/renderer.html
@@ -19,9 +19,9 @@
19
// windows. This we cannot allow as it may crash
20
// the test run.
21
// !!! DO NOT CHANGE !!!
22
- window.open = function () {return null;};
23
- window.alert = function () {}
24
- window.confirm = function () {}
+ window.open = function () { throw new Error('window.open() is not supported in tests!'); };
+ window.alert = function () { throw new Error('window.alert() is not supported in tests!'); }
+ window.confirm = function () { throw new Error('window.confirm() is not supported in tests!'); }
25
26
mocha.setup({
27
ui: 'tdd',
0 commit comments