From a167c188f3981edf920d94ab4a3e4ea8c9b320fa Mon Sep 17 00:00:00 2001 From: AlexeyM Date: Fri, 6 Oct 2017 09:40:49 -0700 Subject: [PATCH] test: use common/fixtures in fs-symlink test PR-URL: https://github.com/nodejs/node/pull/15830 Reviewed-By: Lance Ball Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil --- test/parallel/test-fs-symlink-dir-junction.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-fs-symlink-dir-junction.js b/test/parallel/test-fs-symlink-dir-junction.js index bc7495aed32569..f7ba3a6d384923 100644 --- a/test/parallel/test-fs-symlink-dir-junction.js +++ b/test/parallel/test-fs-symlink-dir-junction.js @@ -21,19 +21,17 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); const assert = require('assert'); const path = require('path'); const fs = require('fs'); // test creating and reading symbolic link -const linkData = path.join(common.fixturesDir, 'cycles/'); +const linkData = fixtures.path('cycles/'); const linkPath = path.join(common.tmpDir, 'cycles_link'); common.refreshTmpDir(); -console.log(`linkData: ${linkData}`); -console.log(`linkPath: ${linkPath}`); - fs.symlink(linkData, linkPath, 'junction', common.mustCall(function(err) { assert.ifError(err);