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 <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
harishtejwani authored and addaleax committed Dec 5, 2016
1 parent 2a8d293 commit 22b15f2
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 22b15f2

Please sign in to comment.