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)