Skip to content

Commit

Permalink
update test in copy-sync-prevent-copying-into-itself.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kolgotko committed Jan 16, 2018
1 parent 6fa1c43 commit 801bd12
Showing 1 changed file with 4 additions and 6 deletions.
Expand Up @@ -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)
Expand Down

0 comments on commit 801bd12

Please sign in to comment.