diff options
author | Sakthipriyan Vairamani <thechargingvolcano@gmail.com> | 2016-07-19 02:03:42 +0530 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2016-07-21 16:39:21 -0700 |
commit | 612307564b2f7758ad4436f95b03c05dca1198d7 (patch) | |
tree | aef09dd1b3859f3ceaff727f1a0d971585ee15e0 /test/parallel/test-cli-syntax.js | |
parent | c21a212bdc3a9e15f37bb6556546b3778503bcf0 (diff) | |
download | node-new-612307564b2f7758ad4436f95b03c05dca1198d7.tar.gz |
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-cli-syntax.js')
-rw-r--r-- | test/parallel/test-cli-syntax.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/parallel/test-cli-syntax.js b/test/parallel/test-cli-syntax.js index 1118a63934..7718c42f31 100644 --- a/test/parallel/test-cli-syntax.js +++ b/test/parallel/test-cli-syntax.js @@ -1,11 +1,10 @@ 'use strict'; +const common = require('../common'); const assert = require('assert'); const spawnSync = require('child_process').spawnSync; const path = require('path'); -const common = require('../common'); - var node = process.execPath; // test both sets of arguments that check syntax |