Browse Source

added test for copy() when source dir() does not exist.

ci/travis-osximage
JP Richardson 11 years ago
parent
commit
93237ddc5a
  1. 11
      test/copy.test.js

11
test/copy.test.js

@ -97,6 +97,17 @@ describe('fs-extra', function() {
})
describe('> when the source is a directory', function() {
describe('> when the source directory does not exist', function() {
it('should return an error', function(done) {
var ts = path.join(DIR, 'this_dir_does_not_exist')
var td = path.join(DIR, 'this_dir_really_does_not_matter')
fs.copy(ts, td, function(err) {
T (err)
done()
})
})
})
it('should copy the directory asynchronously', function(done) {
var FILES = 2
, src = path.join(DIR, 'src')

Loading…
Cancel
Save