aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-fork-exec-path.js
diff options
context:
space:
mode:
authorSakthipriyan Vairamani <thechargingvolcano@gmail.com>2016-07-19 02:03:42 +0530
committerRich Trott <rtrott@gmail.com>2016-07-21 16:39:21 -0700
commit612307564b2f7758ad4436f95b03c05dca1198d7 (patch)
treeaef09dd1b3859f3ceaff727f1a0d971585ee15e0 /test/parallel/test-child-process-fork-exec-path.js
parentc21a212bdc3a9e15f37bb6556546b3778503bcf0 (diff)
downloadandroid-node-v8-612307564b2f7758ad4436f95b03c05dca1198d7.tar.gz
android-node-v8-612307564b2f7758ad4436f95b03c05dca1198d7.tar.bz2
android-node-v8-612307564b2f7758ad4436f95b03c05dca1198d7.zip
test: make import common as the first line
The `test/common` module has the capability to identify if any variable is leaked to the global scope and fail the test. So that has to be imported at the beginning. PR-URL: https://github.com/nodejs/node/pull/7786 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/parallel/test-child-process-fork-exec-path.js')
-rw-r--r--test/parallel/test-child-process-fork-exec-path.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-child-process-fork-exec-path.js b/test/parallel/test-child-process-fork-exec-path.js
index 459e9992d0..e42b72f2b8 100644
--- a/test/parallel/test-child-process-fork-exec-path.js
+++ b/test/parallel/test-child-process-fork-exec-path.js
@@ -1,8 +1,8 @@
'use strict';
+const common = require('../common');
var assert = require('assert');
var fs = require('fs');
var path = require('path');
-var common = require('../common');
var msg = {test: 'this'};
var nodePath = process.execPath;
var copyPath = path.join(common.tmpDir, 'node-copy.exe');