From 801bd121d56400beb8313aab337100d2389da6c2 Mon Sep 17 00:00:00 2001 From: Igor Bykov Date: Tue, 16 Jan 2018 16:46:39 +0300 Subject: [PATCH] update test in copy-sync-prevent-copying-into-itself.test.js --- .../copy-sync-prevent-copying-into-itself.test.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/copy-sync/__tests__/copy-sync-prevent-copying-into-itself.test.js b/lib/copy-sync/__tests__/copy-sync-prevent-copying-into-itself.test.js index 60cb8c85..a3347cc9 100644 --- a/lib/copy-sync/__tests__/copy-sync-prevent-copying-into-itself.test.js +++ b/lib/copy-sync/__tests__/copy-sync-prevent-copying-into-itself.test.js @@ -63,12 +63,10 @@ describe('+ copySync() - prevent copying into itself', () => { describe('> when source is a directory', () => { describe('>> when dest is a directory', () => { - if (os.platform() !== 'win32') { - it(`of not itself`, done => { - const dest = path.join(TEST_DIR, src) - return testSuccess(src, dest, done) - }) - } + it(`of not itself`, done => { + const dest = path.join(TEST_DIR, src.replace(/^\w:/, '')) + return testSuccess(src, dest, done) + }) it(`of itself`, done => { const dest = path.join(src, 'dest') return testError(src, dest, done)