mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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:
1 parent
1d7e1c0f18
commit
7ca02b0f0c
1 file changed
+3
-3
@@ -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
|
||||
);
|
||||
Reference in new issue
Block a user