From dc6046791c7648b3225d6524565643ada5af5f80 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 28 Nov 2016 13:50:21 -0800 Subject: [PATCH] test: refactor test-debug-args MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * indexOf() -> includes() * var -> const PR-URL: https://github.com/nodejs/node/pull/9833 Reviewed-By: Evan Lucas Reviewed-By: Prince John Wesley Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig --- test/parallel/test-debug-args.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-debug-args.js b/test/parallel/test-debug-args.js index e5f9f3716119ed..a4ed4f9f1ee719 100644 --- a/test/parallel/test-debug-args.js +++ b/test/parallel/test-debug-args.js @@ -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'));