diff options
author | Rich Trott <rtrott@gmail.com> | 2015-10-01 21:37:12 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2015-10-06 15:11:47 -0700 |
commit | c78091d689d0d4d56b3231b9050d52ca69ecb449 (patch) | |
tree | 604f19765672da3c1516cfbea7c4b9c7bac8168a /test/addons/async-hello-world | |
parent | dbce29a3ace6ca978f89c27c9a84036a83a7b562 (diff) | |
download | android-node-v8-c78091d689d0d4d56b3231b9050d52ca69ecb449.tar.gz android-node-v8-c78091d689d0d4d56b3231b9050d52ca69ecb449.tar.bz2 android-node-v8-c78091d689d0d4d56b3231b9050d52ca69ecb449.zip |
test: load common.js in all tests
common.js contains code that detects leaked variables.
In preparation for an eslint rule that will enforce loading common.js in
test files, load it everywhere it can be loaded and use an
`eslint-disable` comment for files that intentionally leak.
PR-URL: https://github.com/nodejs/node/pull/3157
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/addons/async-hello-world')
-rw-r--r-- | test/addons/async-hello-world/test.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/addons/async-hello-world/test.js b/test/addons/async-hello-world/test.js index a284a019f0..14b80b711b 100644 --- a/test/addons/async-hello-world/test.js +++ b/test/addons/async-hello-world/test.js @@ -1,4 +1,5 @@ 'use strict'; +require('../../common'); var assert = require('assert'); var binding = require('./build/Release/binding'); var called = false; |