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: #9833
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
Trott authored and addaleax committed Dec 5, 2016
1 parent a0e25b2 commit 5c15a68
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 5c15a68

Please sign in to comment.