added null check so copyDirSyncRecursive will work without passing opts
This commit is contained in:
parent
32c2af7f44
commit
5e80ff972c
2 changed files with 10 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Reference in a new issue