Skip to content

Commit

Permalink
test: rename test-regress-nodejsGH-3542
Browse files Browse the repository at this point in the history
Rename the test appropriately alongside mentioning the subsystem
Also, make a few basic changes to make sure the test conforms
to the standard test structure

Refs: nodejs#19105
Refs: https://github.com/nodejs/node/blob/master/doc/guides/writing-tests.md#test-structure
  • Loading branch information
ryzokuken committed Mar 8, 2018
1 parent 9de9014 commit 18c7841
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
'use strict';
const common = require('../common');

// This test ensures fs.realpathSync works on properly on Windows without
// throwing ENOENT when the path involves a fileserver
// https://github.com/nodejs/node-v0.x-archive/issues/3542

// This test is only relevant on Windows.
if (!common.isWindows)
common.skip('Windows specific test.');

const assert = require('assert');
const fs = require('fs');
const path = require('path');

if (!common.isWindows)
common.skip('Windows specific test.');

function test(p) {
const result = fs.realpathSync(p);
assert.strictEqual(result.toLowerCase(), path.resolve(p).toLowerCase());
Expand Down

0 comments on commit 18c7841

Please sign in to comment.