From 300c7b2d4202ea2ece91acfa21f32390b8433d89 Mon Sep 17 00:00:00 2001 From: Chowdhurian Date: Fri, 6 Oct 2017 10:14:49 -0700 Subject: [PATCH 1/2] test: replace common.fixturesDir in test-exception.js Replace common.fixturesDir with usage of the common.fixtures module in text-exception.js --- test/inspector/test-exception.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/inspector/test-exception.js b/test/inspector/test-exception.js index ca3994c0a0005f..cd3a486c8cb1f5 100644 --- a/test/inspector/test-exception.js +++ b/test/inspector/test-exception.js @@ -1,5 +1,6 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); common.skipIfInspectorDisabled(); @@ -7,7 +8,7 @@ const assert = require('assert'); const { NodeInstance } = require('./inspector-helper.js'); const path = require('path'); -const script = path.join(common.fixturesDir, 'throws_error.js'); +const script = fixtures.path('throws_error.js'); async function testBreakpointOnStart(session) { console.log('[test]', From 830ea062127aadc118c22ffdaaec1a6e74f204a0 Mon Sep 17 00:00:00 2001 From: Chowdhurian Date: Sat, 7 Oct 2017 14:29:07 -0700 Subject: [PATCH 2/2] test: fix linter error Fix linter error on unused variable. --- test/inspector/test-exception.js | 1 - 1 file changed, 1 deletion(-) diff --git a/test/inspector/test-exception.js b/test/inspector/test-exception.js index cd3a486c8cb1f5..eab59ee9f44cbb 100644 --- a/test/inspector/test-exception.js +++ b/test/inspector/test-exception.js @@ -6,7 +6,6 @@ common.skipIfInspectorDisabled(); const assert = require('assert'); const { NodeInstance } = require('./inspector-helper.js'); -const path = require('path'); const script = fixtures.path('throws_error.js');