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 <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>
  • 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.