added null check so copyDirSyncRecursive will work without passing opts

This commit is contained in:
Stig Murberg 2012-11-15 12:25:11 +01:00
parent 32c2af7f44
commit 5e80ff972c
2 changed files with 10 additions and 2 deletions

View file

@ -77,6 +77,15 @@ function checkResultOverwriteFiles(test, files) {
}
module.exports = testCase({
test_copyDirSyncRecursiveWithoutOptions: function(test) {
var dir = path.join(__dirname, 'shown');
var testdir = path.join(__dirname, 'testdir');
wrench.copyDirSyncRecursive(dir, testdir);
wrench.rmdirSyncRecursive(testdir);
test.done();
},
test_copyDirSyncRecursiveHidden: function(test) {
var dir = path.join(__dirname, 'shown');
var testdir = path.join(__dirname, 'testdir');