node/test/parallel/test-path-posix-relative-on-windows.js
2021-04-02 19:30:43 -07:00

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$/);