summaryrefslogtreecommitdiff
path: root/test/parallel/test-sync-fileread.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-sync-fileread.js')
-rw-r--r--test/parallel/test-sync-fileread.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/parallel/test-sync-fileread.js b/test/parallel/test-sync-fileread.js
index 6882513c50..826f62d220 100644
--- a/test/parallel/test-sync-fileread.js
+++ b/test/parallel/test-sync-fileread.js
@@ -1,9 +1,7 @@
'use strict';
-const common = require('../common');
+require('../common');
const assert = require('assert');
-const path = require('path');
const fs = require('fs');
+const fixtures = require('../common/fixtures');
-const fixture = path.join(common.fixturesDir, 'x.txt');
-
-assert.strictEqual(fs.readFileSync(fixture).toString(), 'xyz\n');
+assert.strictEqual(fs.readFileSync(fixtures.path('x.txt')).toString(), 'xyz\n');