summaryrefslogtreecommitdiff
path: root/test/parallel/test-path-posix-relative-on-windows.js
blob: bcaaca8b18a1ef653023a25430d266513a6fa0db (plain)
1
2
3
4
5
6
7
8
9
10
'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$/);