Disable use of deprecated functions in specs.
This commit is contained in:
parent
474e1fcd3b
commit
cd68396bd5
2 changed files with 5 additions and 0 deletions
|
@ -13,7 +13,9 @@ describe 'crash-reporter module', ->
|
|||
w = new BrowserWindow(show: false)
|
||||
server = http.createServer (req, res) ->
|
||||
form = new formidable.IncomingForm()
|
||||
process.throwDeprecation = false
|
||||
form.parse req, (error, fields, files) ->
|
||||
process.throwDeprecation = true
|
||||
assert.equal fields['prod'], 'Atom-Shell'
|
||||
assert.equal fields['ver'], process.versions['atom-shell']
|
||||
assert.equal fields['process_type'], 'renderer'
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
(function() {
|
||||
// Disable use of deprecated functions.
|
||||
process.throwDeprecation = true;
|
||||
|
||||
// Check if we are running in CI.
|
||||
var argv = require('remote').process.argv;
|
||||
var isCi = argv[1] == '--ci';
|
||||
|
|
Loading…
Reference in a new issue