From 5815d6ddcdbcc842d04462193e68a47a91c4e2db Mon Sep 17 00:00:00 2001 From: JP Richardson Date: Thu, 22 May 2014 16:12:28 -0500 Subject: [PATCH] add regression test to pending state. See avianflu/ncp #38 --- test/copy.test.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/copy.test.js b/test/copy.test.js index cfb1d8ac..a13414ba 100644 --- a/test/copy.test.js +++ b/test/copy.test.js @@ -5,6 +5,7 @@ var crypto = require('crypto') , mkdir = require('mkdirp') , mkdirp = mkdir , userid = require('userid') + , ncp = require('ncp') var SIZE = 16 * 64 * 1024 + 7; @@ -168,7 +169,7 @@ describe('fs-extra', function() { }) }) - describe('> REGRESSIONS', function() { + describe.skip('> REGRESSIONS', function() { //pretty UNIX specific, may not pass on windows... only test on Mac OS X 10.9 it('should maintain file permissions and ownership', function(done) { @@ -177,10 +178,10 @@ describe('fs-extra', function() { var S_IFDIR = 0040000 //directory var permDir = path.join(DIR, 'perms'); - mkdirp.sync(permDir); + fs.mkdirSync(permDir); var srcDir = path.join(permDir, 'src'); - mkdirp.sync(srcDir); + fs.mkdirSync(srcDir); var f1 = path.join(srcDir, 'f1.txt'); fs.writeFileSync(f1, ''); @@ -204,14 +205,14 @@ describe('fs-extra', function() { EQ (f2stats.mode - S_IFREG, 0777); var d2 = path.join(srcDir, 'crazydir'); - mkdirp.sync(d2); + fs.mkdirSync(d2); fs.chmodSync(d2, 0444); fs.chownSync(d2, process.getuid(), userid.gid('wheel')); var d2stats = fs.lstatSync(d2); EQ (d2stats.mode - S_IFDIR, 0444); var destDir = path.join(permDir, 'dest'); - fs.copy(srcDir, destDir, function(err) { + ncp(srcDir, destDir, function(err) { F (err) var newf1stats = fs.lstatSync(path.join(permDir, 'dest/f1.txt'));