test: replace fixturesDir with common.fixtures
PR-URL: https://github.com/nodejs/node/pull/16051 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This commit is contained in:
parent
5843b2c945
commit
bdf711dc62
@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
const path = require('path');
|
||||
require('../common');
|
||||
const fixtures = require('../common/fixtures');
|
||||
const assert = require('assert');
|
||||
|
||||
assert.throws(function() {
|
||||
@ -8,6 +8,6 @@ assert.throws(function() {
|
||||
}, /^Error: Cannot find module 'internal\/freelist'$/);
|
||||
|
||||
assert.strictEqual(
|
||||
require(path.join(common.fixturesDir, 'internal-modules')),
|
||||
require(fixtures.path('internal-modules')),
|
||||
42
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user