test: remove test-path-parse-6229.js from known issues

This test precedented the official documentation that states that
this is an expected behavior.

PR-URL: https://github.com/nodejs/node/pull/26913
Refs: https://github.com/nodejs/node/issues/6229
Refs: https://github.com/nodejs/node/pull/12181
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
Ruben Bridgewater 2019-03-26 02:51:13 +01:00
parent 6e5ffc4147
commit f9da55cca2
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -1,34 +0,0 @@
'use strict';
// Refs: https://github.com/nodejs/node/issues/6229
require('../common');
const assert = require('assert');
const path = require('path');
{
// The path `/foo/bar` is not the same path as `/foo/bar/`
const parsed1 = path.posix.parse('/foo/bar');
const parsed2 = path.posix.parse('/foo/bar/');
assert.strictEqual(parsed1.root, '/');
assert.strictEqual(parsed1.dir, '/foo');
assert.strictEqual(parsed1.base, 'bar');
assert.strictEqual(parsed2.root, '/');
assert.strictEqual(parsed2.dir, '/foo/bar');
assert.strictEqual(parsed2.base, '');
}
{
// The path `\\foo\\bar` is not the same path as `\\foo\\bar\\`
const parsed1 = path.win32.parse('\\foo\\bar');
const parsed2 = path.win32.parse('\\foo\\bar\\');
assert.strictEqual(parsed1.root, '\\');
assert.strictEqual(parsed1.dir, '\\foo');
assert.strictEqual(parsed1.base, 'bar');
assert.strictEqual(parsed2.root, '\\');
assert.strictEqual(parsed2.dir, '\\foo\\bar');
assert.strictEqual(parsed2.base, '');
}