chore(tests): allow usage of deprecated APIs in tests (#13862)

This commit is contained in:
trop[bot] 2018-07-30 15:02:59 +10:00 committed by Samuel Attard
parent a62cb1e84c
commit a9a5766804
2 changed files with 4 additions and 4 deletions

View file

@ -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')

View file

@ -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