Skip to content

Commit 22b15f2

Browse files
harishtejwaniaddaleax
authored andcommitted
test: change var to const for require and strict equality checks
PR-URL: #9892 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 2a8d293 commit 22b15f2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
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)