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 Oct 11, 2017
1 parent 1d7e1c0 commit 7ca02b0
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 7ca02b0

Please sign in to comment.