Skip to content

Commit

Permalink
test: refactor test-fs-symlink-dir-junction
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
walterbm authored and addaleax committed Dec 8, 2016
1 parent 09de714 commit 4a28eac
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/parallel/test-fs-symlink-dir-junction.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
'use strict';
var common = require('../common');
var assert = require('assert');
var path = require('path');
var fs = require('fs');
const common = require('../common');
const assert = require('assert');
const path = require('path');
const fs = require('fs');

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

common.refreshTmpDir();

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

fs.readlink(linkPath, common.mustCall(function(err, destination) {
if (err) throw err;
assert.equal(destination, linkData);
assert.strictEqual(destination, linkData);

fs.unlink(linkPath, common.mustCall(function(err) {
if (err) throw err;
Expand Down

0 comments on commit 4a28eac

Please sign in to comment.