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