Skip to content

Commit

Permalink
copy*(): fix case-insensitive-paths tests
Browse files Browse the repository at this point in the history
  • Loading branch information
manidlou committed Aug 12, 2018
1 parent 026cc86 commit 7a5cf61
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
Expand Up @@ -32,8 +32,6 @@ describe('+ copySync() - case insensitive paths', () => {
} catch (err) {
if (platform === 'darwin' || platform === 'win32') {
assert.strictEqual(err.message, 'Source and destination must not be the same.')
assert(fs.existsSync(src))
assert(!fs.existsSync(dest))
errThrown = true
}
}
Expand All @@ -58,8 +56,6 @@ describe('+ copySync() - case insensitive paths', () => {
} catch (err) {
if (platform === 'darwin' || platform === 'win32') {
assert.strictEqual(err.message, 'Source and destination must not be the same.')
assert(fs.existsSync(src))
assert(!fs.existsSync(dest))
errThrown = true
}
}
Expand All @@ -86,8 +82,6 @@ describe('+ copySync() - case insensitive paths', () => {
} catch (err) {
if (platform === 'darwin' || platform === 'win32') {
assert.strictEqual(err.message, 'Source and destination must not be the same.')
assert(fs.existsSync(src))
assert(!fs.existsSync(dest))
errThrown = true
}
}
Expand All @@ -114,8 +108,6 @@ describe('+ copySync() - case insensitive paths', () => {
} catch (err) {
if (platform === 'darwin' || platform === 'win32') {
assert.strictEqual(err.message, 'Source and destination must not be the same.')
assert(fs.existsSync(src))
assert(!fs.existsSync(dest))
errThrown = true
}
}
Expand Down
10 changes: 1 addition & 9 deletions lib/copy/__tests__/copy-case-insensitive-paths.test.js
Expand Up @@ -5,7 +5,7 @@ const os = require('os')
const path = require('path')
const fs = require('../../')
const platform = os.platform()

console.log('platform: ' + platform)
/* global beforeEach, afterEach, describe, it */

describe('+ copy() - case insensitive paths', () => {
Expand Down Expand Up @@ -34,8 +34,6 @@ describe('+ copy() - case insensitive paths', () => {
}
if (platform === 'darwin' || platform === 'win32') {
assert.strictEqual(err.message, 'Source and destination must not be the same.')
assert(fs.existsSync(src))
assert(!fs.existsSync(dest))
}
done()
})
Expand All @@ -56,8 +54,6 @@ describe('+ copy() - case insensitive paths', () => {
}
if (platform === 'darwin' || platform === 'win32') {
assert.strictEqual(err.message, 'Source and destination must not be the same.')
assert(fs.existsSync(src))
assert(!fs.existsSync(dest))
}
done()
})
Expand All @@ -82,8 +78,6 @@ describe('+ copy() - case insensitive paths', () => {
}
if (platform === 'darwin' || platform === 'win32') {
assert.strictEqual(err.message, 'Source and destination must not be the same.')
assert(fs.existsSync(src))
assert(!fs.existsSync(dest))
}
done()
})
Expand All @@ -106,8 +100,6 @@ describe('+ copy() - case insensitive paths', () => {
}
if (platform === 'darwin' || platform === 'win32') {
assert.strictEqual(err.message, 'Source and destination must not be the same.')
assert(fs.existsSync(src))
assert(!fs.existsSync(dest))
}
done()
})
Expand Down

0 comments on commit 7a5cf61

Please sign in to comment.