Skip to content

Commit cf2562b

Browse files
committed
test: refactor test-debug-args
* indexOf() -> includes() * var -> const PR-URL: nodejs#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>
1 parent 98f9b5d commit cf2562b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-debug-args.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
// Flags: --debug-code
33

44
require('../common');
5-
var assert = require('assert');
5+
const assert = require('assert');
66

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

0 commit comments

Comments
 (0)