diff options
author | tabulatedreams <sung.hwang@ubc.ca> | 2017-10-06 12:25:05 -0700 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2017-10-09 02:13:20 -0700 |
commit | 5e93df684052bde146992bce4898e6d583345bb3 (patch) | |
tree | 6582897f1f7c7f208d1a112e704f6e7859dbbf41 /test/parallel/test-repl-syntax-error-stack.js | |
parent | 506a5f75f859c5664c85a324e6950a00b4f64ea2 (diff) | |
download | android-node-v8-5e93df684052bde146992bce4898e6d583345bb3.tar.gz android-node-v8-5e93df684052bde146992bce4898e6d583345bb3.tar.bz2 android-node-v8-5e93df684052bde146992bce4898e6d583345bb3.zip |
test: replace fixturesDir with fixtures module
PR-URL: https://github.com/nodejs/node/pull/16036
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'test/parallel/test-repl-syntax-error-stack.js')
-rw-r--r-- | test/parallel/test-repl-syntax-error-stack.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-repl-syntax-error-stack.js b/test/parallel/test-repl-syntax-error-stack.js index af7e8bed6e..462deb5fb6 100644 --- a/test/parallel/test-repl-syntax-error-stack.js +++ b/test/parallel/test-repl-syntax-error-stack.js @@ -1,8 +1,8 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); const assert = require('assert'); -const path = require('path'); const repl = require('repl'); let found = false; @@ -17,7 +17,7 @@ common.ArrayStream.prototype.write = function(output) { const putIn = new common.ArrayStream(); repl.start('', putIn); -let file = path.join(common.fixturesDir, 'syntax', 'bad_syntax'); +let file = fixtures.path('syntax', 'bad_syntax'); if (common.isWindows) file = file.replace(/\\/g, '\\\\'); |