Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5f6284c

Browse files
authored
Add test case for #53
1 parent 924a843 commit 5f6284c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test/deployer.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,26 @@ describe('deployer', function() {
149149
content.should.eql('hidden');
150150
});
151151
});
152+
153+
it('hidden extdir', function() {
154+
var extendDirName = pathFn.basename(extendDir);
155+
156+
return fs.writeFile(pathFn.join(extendDirName, '.hid'), 'hidden')
157+
.then(function() {
158+
return deployer({
159+
repo: fakeRemote,
160+
extend_dirs: extendDirName,
161+
ignore_hidden: {public: true, extendDirName: false},
162+
silent: true
163+
});
164+
}).then(function() {
165+
return validate();
166+
}).then(function() {
167+
var extHidFile = pathFn.join(validateDir, extendDirName, '.hid');
168+
169+
return fs.readFile(extHidFile);
170+
}).then(function(content) {
171+
content.should.eql('hidden');
172+
});
173+
});
152174
});

0 commit comments

Comments
 (0)