The Wayback Machine - https://web.archive.org/web/20250407172920/https://github.com/nodejs/node/commit/4a28eac54b
Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Commit 4a28eac

Browse filesBrowse files
walterbmaddaleax
authored andcommitted
test: refactor test-fs-symlink-dir-junction
* var -> const * assert.equal() -> assert.strictEqual() PR-URL: #9928 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 09de714 commit 4a28eac
Copy full SHA for 4a28eac

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Copy file name to clipboardexpand all lines: 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.