fs-jetpack
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -0,1 +1,9 @@ | ||
0.7.2 (2016-03-09) | ||
------------------- | ||
* Fixed .dotfiles copying | ||
0.7.1 (2015-12-17) | ||
------------------- | ||
* Updated third party dependencies. | ||
0.7.0 (2015-07-20) | ||
@@ -2,0 +10,0 @@ ------------------- |
@@ -50,2 +50,3 @@ // Matcher for glob patterns (e.g. *.txt, /a/b/**/z) | ||
nocomment: true, | ||
dot: true, | ||
}); | ||
@@ -52,0 +53,0 @@ }); |
{ | ||
"name": "fs-jetpack", | ||
"description": "Better file system API", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"author": "Jakub Szwacz <jakub@szwacz.com>", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
@@ -404,2 +404,34 @@ /* eslint-env jasmine */ | ||
it("wildcard copies everything", function (done) { | ||
var preparations = function () { | ||
helper.clearWorkingDir(); | ||
// Just a file | ||
fse.outputFileSync('x/file.txt', '123'); | ||
// Dot file | ||
fse.outputFileSync('x/y/.dot', 'dot'); | ||
// Empty directory | ||
fse.mkdirsSync('x/y/z'); | ||
}; | ||
var expectations = function () { | ||
expect('copy/file.txt').toBeFileWithContent('123'); | ||
expect('copy/y/.dot').toBeFileWithContent('dot'); | ||
expect('copy/y/z').toBeDirectory(); | ||
}; | ||
// SYNC | ||
preparations(); | ||
jetpack.copy('x', 'copy', { matching: '**' }); | ||
expectations(); | ||
// ASYNC | ||
preparations(); | ||
jetpack.copyAsync('x', 'copy', { matching: '**' }) | ||
.then(function () { | ||
expectations(); | ||
done(); | ||
}); | ||
}); | ||
}); | ||
@@ -406,0 +438,0 @@ |
197576
4899