aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-spawn-error.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2014-12-15 13:58:37 -0500
committercjihrig <cjihrig@gmail.com>2014-12-19 10:27:48 -0500
commit56785958565378c9ba43c5bdf5c631f7738f95ab (patch)
treef1620dc26c8c4394e34fa07cdafb7434ac9c30bb /test/parallel/test-child-process-spawn-error.js
parenta5532674b09ebb10bee1bdd3c5c8ff44011a4912 (diff)
downloadandroid-node-v8-56785958565378c9ba43c5bdf5c631f7738f95ab.tar.gz
android-node-v8-56785958565378c9ba43c5bdf5c631f7738f95ab.tar.bz2
android-node-v8-56785958565378c9ba43c5bdf5c631f7738f95ab.zip
fs: deprecate exists() and existsSync()
These methods don't follow standard conventions, and shouldn't be used anyway. Fixes: https://github.com/iojs/io.js/issues/103 PR-URL: https://github.com/iojs/io.js/pull/166 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/parallel/test-child-process-spawn-error.js')
-rw-r--r--test/parallel/test-child-process-spawn-error.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-child-process-spawn-error.js b/test/parallel/test-child-process-spawn-error.js
index 5ecfbff263..794dafaf88 100644
--- a/test/parallel/test-child-process-spawn-error.js
+++ b/test/parallel/test-child-process-spawn-error.js
@@ -19,6 +19,7 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.
+var common = require('../common');
var fs = require('fs');
var spawn = require('child_process').spawn;
var assert = require('assert');
@@ -26,7 +27,7 @@ var assert = require('assert');
var errors = 0;
var enoentPath = 'foo123';
-assert.equal(fs.existsSync(enoentPath), false);
+assert.equal(common.fileExists(enoentPath), false);
var enoentChild = spawn(enoentPath);
enoentChild.on('error', function (err) {