|
3 | 3 | var Promise = global.Promise; |
4 | 4 | var fs = require('node:fs'); |
5 | 5 | var path = require('node:path'); |
6 | | -var posixPath = path.posix; |
7 | 6 | var chai = require('chai'); |
8 | 7 | var expect = chai.expect; |
9 | 8 | var chaiAsPromised = require('chai-as-promised'); |
| 9 | +var slash = require('slash'); |
10 | 10 | var readDirFiles = require('read-dir-files'); |
11 | 11 | var through = require('through2'); |
12 | 12 | var rewire = require('rewire'); |
@@ -454,13 +454,13 @@ describe('copy()', function() { |
454 | 454 | getDestinationPath('nested-symlinks') |
455 | 455 | ).then(function(results) { |
456 | 456 | var actual, expected; |
457 | | - actual = posixPath.normalize(fs.readlinkSync(getDestinationPath('nested-symlinks/file'))); |
| 457 | + actual = slash(fs.readlinkSync(getDestinationPath('nested-symlinks/file'))); |
458 | 458 | expected = '../file'; |
459 | 459 | expect(actual).to.equal(expected); |
460 | | - actual = posixPath.normalize(fs.readlinkSync(getDestinationPath('nested-symlinks/directory'))); |
| 460 | + actual = slash(fs.readlinkSync(getDestinationPath('nested-symlinks/directory'))); |
461 | 461 | expected = '../directory'; |
462 | 462 | expect(actual).to.equal(expected); |
463 | | - actual = posixPath.normalize(fs.readlinkSync(getDestinationPath('nested-symlinks/nested/directory'))); |
| 463 | + actual = slash(fs.readlinkSync(getDestinationPath('nested-symlinks/nested/directory'))); |
464 | 464 | expected = '../../directory'; |
465 | 465 | expect(actual).to.equal(expected); |
466 | 466 | }); |
|
0 commit comments