@@ -402,6 +402,7 @@ test('certain files ignored by default', function (t) {
402
402
'npm-debug.log' : File ( '' ) ,
403
403
'.npmrc' : File ( '' ) ,
404
404
'.foo.swp' : File ( '' ) ,
405
+ 'core' : Dir ( { core : File ( '' ) , foo : File ( '' ) } ) ,
405
406
'.DS_Store' : Dir ( { foo : File ( '' ) } ) ,
406
407
'._ohno' : File ( '' ) ,
407
408
'._ohnoes' : Dir ( { noes : File ( '' ) } ) ,
@@ -422,7 +423,11 @@ test('certain files ignored by default', function (t) {
422
423
t . notOk ( fileExists ( 'npm-debug.log' ) , 'npm-debug.log not included' )
423
424
t . notOk ( fileExists ( '.npmrc' ) , '.npmrc not included' )
424
425
t . notOk ( fileExists ( '.foo.swp' ) , '.foo.swp not included' )
426
+ t . ok ( fileExists ( 'core' ) , 'core/ included' )
427
+ t . ok ( fileExists ( 'core/foo' ) , 'core/foo included' )
428
+ t . notOk ( fileExists ( 'core/core' ) , 'core/core not included' )
425
429
t . notOk ( fileExists ( '.DS_Store' ) , '.DS_Store not included' )
430
+ t . notOk ( fileExists ( '.DS_Store/foo' ) , '.DS_Store/foo not included' )
426
431
t . notOk ( fileExists ( '._ohno' ) , '._ohno not included' )
427
432
t . notOk ( fileExists ( '._ohnoes' ) , '._ohnoes not included' )
428
433
t . notOk ( fileExists ( 'foo.orig' ) , 'foo.orig not included' )
@@ -450,6 +455,7 @@ test('default-ignored files can be explicitly included', function (t) {
450
455
'npm-debug.log' ,
451
456
'.npmrc' ,
452
457
'.foo.swp' ,
458
+ 'core' ,
453
459
'.DS_Store' ,
454
460
'._ohno' ,
455
461
'._ohnoes' ,
@@ -469,6 +475,7 @@ test('default-ignored files can be explicitly included', function (t) {
469
475
'npm-debug.log' : File ( '' ) ,
470
476
'.npmrc' : File ( '' ) ,
471
477
'.foo.swp' : File ( '' ) ,
478
+ 'core' : Dir ( { core : File ( '' ) , foo : File ( '' ) } ) ,
472
479
'.DS_Store' : Dir ( { foo : File ( '' ) } ) ,
473
480
'._ohno' : File ( '' ) ,
474
481
'._ohnoes' : Dir ( { noes : File ( '' ) } ) ,
@@ -489,6 +496,9 @@ test('default-ignored files can be explicitly included', function (t) {
489
496
t . ok ( fileExists ( 'npm-debug.log' ) , 'npm-debug.log included' )
490
497
t . ok ( fileExists ( '.npmrc' ) , '.npmrc included' )
491
498
t . ok ( fileExists ( '.foo.swp' ) , '.foo.swp included' )
499
+ t . ok ( fileExists ( 'core' ) , 'core/ included' )
500
+ t . ok ( fileExists ( 'core/foo' ) , 'core/foo included' )
501
+ t . ok ( fileExists ( 'core/core' ) , 'core/core included' )
492
502
t . ok ( fileExists ( '.DS_Store' ) , '.DS_Store included' )
493
503
t . ok ( fileExists ( '._ohno' ) , '._ohno included' )
494
504
t . ok ( fileExists ( '._ohnoes' ) , '._ohnoes included' )
0 commit comments