Skip to content

Commit

Permalink
test: replace fixturesDir with common.fixtures
Browse files Browse the repository at this point in the history
PR-URL: #16051
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
  • Loading branch information
rachelnicole authored and MylesBorins committed Nov 28, 2017
1 parent 107acb1 commit 8c5b51d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-internal-modules.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
'use strict';
const common = require('../common');
const path = require('path');
require('../common');
const fixtures = require('../common/fixtures');
const assert = require('assert');

assert.throws(function() {
require('internal/freelist');
}, /^Error: Cannot find module 'internal\/freelist'$/);

assert.strictEqual(
require(path.join(common.fixturesDir, 'internal-modules')),
require(fixtures.path('internal-modules')),
42
);

0 comments on commit 8c5b51d

Please sign in to comment.