Skip to content

Commit 2a9ab8e

Browse files
harishtejwaniMylesBorins
authored andcommitted
test: change var to const for require and strict equality checks
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>
1 parent 5cd7e7a commit 2a9ab8e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
'use strict';
2-
var common = require('../common');
3-
var assert = require('assert');
2+
const common = require('../common');
3+
const assert = require('assert');
44

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

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

0 commit comments

Comments
 (0)