mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
b0d5e036d8
Fixes: https://github.com/nodejs/node/issues/13683 PR-URL: https://github.com/nodejs/node/pull/37747 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
11 lines
266 B
JavaScript
11 lines
266 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
const assert = require('assert');
|
|
const path = require('path');
|
|
|
|
// Refs: https://github.com/nodejs/node/issues/13683
|
|
|
|
const relativePath = path.posix.relative('a/b/c', '../../x');
|
|
assert.match(relativePath, /^(\.\.\/){3,5}x$/);
|