File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -149,4 +149,26 @@ describe('deployer', function() {
149
149
content . should . eql ( 'hidden' ) ;
150
150
} ) ;
151
151
} ) ;
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
+ } ) ;
152
174
} ) ;
You can’t perform that action at this time.
0 commit comments