Skip to content

Commit

Permalink
test: refactor test-debug-args
Browse files Browse the repository at this point in the history
* indexOf() -> includes()
* var -> const

PR-URL: nodejs#9833
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: Prince John Wesley <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
Trott authored and addaleax committed Dec 8, 2016
1 parent 015812e commit a773843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-debug-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
// Flags: --debug-code

require('../common');
var assert = require('assert');
const assert = require('assert');

assert.notEqual(process.execArgv.indexOf('--debug-code'), -1);
assert(process.execArgv.includes('--debug-code'));

0 comments on commit a773843

Please sign in to comment.