Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: changed common.fixturesDir to use common.fixtures module #15904

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions test/parallel/test-fs-realpath.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

'use strict';
const common = require('../common');
const fixtures = require('../common/fixtures');

const assert = require('assert');
const fs = require('fs');
const path = require('path');
Expand Down Expand Up @@ -133,7 +135,7 @@ function test_simple_absolute_symlink(callback) {
console.log('using type=%s', type);

const entry = `${tmpAbsDir}/symlink`;
const expected = `${common.fixturesDir}/nested-index/one`;
const expected = fixtures.path('nested-index', 'one');
[
[entry, expected]
].forEach(function(t) {
Expand All @@ -156,7 +158,7 @@ function test_deep_relative_file_symlink(callback) {
return runNextTest();
}

const expected = path.join(common.fixturesDir, 'cycles', 'root.js');
const expected = fixtures.path('cycles', 'root.js');
const linkData1 = path
.relative(path.join(targetsAbsDir, 'nested-index', 'one'),
expected);
Expand Down Expand Up @@ -185,7 +187,7 @@ function test_deep_relative_dir_symlink(callback) {
common.printSkipMessage('symlink test (no privs)');
return runNextTest();
}
const expected = path.join(common.fixturesDir, 'cycles', 'folder');
const expected = fixtures.path('cycles', 'folder');
const path1b = path.join(targetsAbsDir, 'nested-index', 'one');
const linkPath1b = path.join(path1b, 'symlink1-dir');
const linkData1b = path.relative(path1b, expected);
Expand Down