Skip to content

Commit 1877ba3

Browse files
walterbmFishrock123
authored andcommitted
test: refactor test-fs-symlink-dir-junction
* var -> const * assert.equal() -> assert.strictEqual() PR-URL: #9928 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 84813fd commit 1877ba3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/parallel/test-fs-symlink-dir-junction.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use strict';
2-
var common = require('../common');
3-
var assert = require('assert');
4-
var path = require('path');
5-
var fs = require('fs');
2+
const common = require('../common');
3+
const assert = require('assert');
4+
const path = require('path');
5+
const fs = require('fs');
66

77
// test creating and reading symbolic link
8-
var linkData = path.join(common.fixturesDir, 'cycles/');
9-
var linkPath = path.join(common.tmpDir, 'cycles_link');
8+
const linkData = path.join(common.fixturesDir, 'cycles/');
9+
const linkPath = path.join(common.tmpDir, 'cycles_link');
1010

1111
common.refreshTmpDir();
1212

@@ -22,7 +22,7 @@ fs.symlink(linkData, linkPath, 'junction', common.mustCall(function(err) {
2222

2323
fs.readlink(linkPath, common.mustCall(function(err, destination) {
2424
if (err) throw err;
25-
assert.equal(destination, linkData);
25+
assert.strictEqual(destination, linkData);
2626

2727
fs.unlink(linkPath, common.mustCall(function(err) {
2828
if (err) throw err;

0 commit comments

Comments
 (0)