chore(tests): allow usage of deprecated APIs in tests (#13862)
This commit is contained in:
parent
a62cb1e84c
commit
a9a5766804
2 changed files with 4 additions and 4 deletions
|
@ -10,8 +10,8 @@
|
||||||
|
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
(function() {
|
(function() {
|
||||||
// Disable use of deprecated functions.
|
// Deprecated APIs are still supported and should be tested.
|
||||||
process.throwDeprecation = true
|
process.throwDeprecation = false
|
||||||
|
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const electron = require('electron')
|
const electron = require('electron')
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Disable use of deprecated functions.
|
// Deprecated APIs are still supported and should be tested.
|
||||||
process.throwDeprecation = true
|
process.throwDeprecation = false
|
||||||
|
|
||||||
const electron = require('electron')
|
const electron = require('electron')
|
||||||
const {app, BrowserWindow, crashReporter, dialog, ipcMain, protocol, webContents} = electron
|
const {app, BrowserWindow, crashReporter, dialog, ipcMain, protocol, webContents} = electron
|
||||||
|
|
Loading…
Reference in a new issue