Skip to content

Commit

Permalink
test: change var to const for require and strict equality checks
Browse files Browse the repository at this point in the history
PR-URL: #9892
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
harishtejwani authored and MylesBorins committed Dec 20, 2016
1 parent 5cd7e7a commit 2a9ab8e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/parallel/test-require-extensions-same-filename-as-dir.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict';
var common = require('../common');
var assert = require('assert');
const common = require('../common');
const assert = require('assert');

var content = require(common.fixturesDir +
const content = require(common.fixturesDir +
'/json-with-directory-name-module/module-stub/one/two/three.js');

assert.notEqual(content.rocko, 'artischocko');
assert.equal(content, 'hello from module-stub!');
assert.notStrictEqual(content.rocko, 'artischocko');
assert.strictEqual(content, 'hello from module-stub!');

0 comments on commit 2a9ab8e

Please sign in to comment.