|
|
@ -63,6 +63,14 @@ describe('+ copySync() - prevent copying into itself', () => { |
|
|
|
|
|
|
|
describe('> when source is a directory', () => { |
|
|
|
describe('>> when dest is a directory', () => { |
|
|
|
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) |
|
|
|
}) |
|
|
|
it(`should copy the directory successfully when dest is 'src_dest'`, done => { |
|
|
|
const dest = path.join(TEST_DIR, 'src_dest') |
|
|
|
return testSuccess(src, dest, done) |
|
|
|