@@ -402,6 +402,7 @@ test('certain files ignored by default', function (t) {
402402 'npm-debug.log' : File ( '' ) ,
403403 '.npmrc' : File ( '' ) ,
404404 '.foo.swp' : File ( '' ) ,
405+ 'core' : Dir ( { core : File ( '' ) , foo : File ( '' ) } ) ,
405406 '.DS_Store' : Dir ( { foo : File ( '' ) } ) ,
406407 '._ohno' : File ( '' ) ,
407408 '._ohnoes' : Dir ( { noes : File ( '' ) } ) ,
@@ -422,7 +423,11 @@ test('certain files ignored by default', function (t) {
422423 t . notOk ( fileExists ( 'npm-debug.log' ) , 'npm-debug.log not included' )
423424 t . notOk ( fileExists ( '.npmrc' ) , '.npmrc not included' )
424425 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' )
425429 t . notOk ( fileExists ( '.DS_Store' ) , '.DS_Store not included' )
430+ t . notOk ( fileExists ( '.DS_Store/foo' ) , '.DS_Store/foo not included' )
426431 t . notOk ( fileExists ( '._ohno' ) , '._ohno not included' )
427432 t . notOk ( fileExists ( '._ohnoes' ) , '._ohnoes not included' )
428433 t . notOk ( fileExists ( 'foo.orig' ) , 'foo.orig not included' )
@@ -450,6 +455,7 @@ test('default-ignored files can be explicitly included', function (t) {
450455 'npm-debug.log' ,
451456 '.npmrc' ,
452457 '.foo.swp' ,
458+ 'core' ,
453459 '.DS_Store' ,
454460 '._ohno' ,
455461 '._ohnoes' ,
@@ -469,6 +475,7 @@ test('default-ignored files can be explicitly included', function (t) {
469475 'npm-debug.log' : File ( '' ) ,
470476 '.npmrc' : File ( '' ) ,
471477 '.foo.swp' : File ( '' ) ,
478+ 'core' : Dir ( { core : File ( '' ) , foo : File ( '' ) } ) ,
472479 '.DS_Store' : Dir ( { foo : File ( '' ) } ) ,
473480 '._ohno' : File ( '' ) ,
474481 '._ohnoes' : Dir ( { noes : File ( '' ) } ) ,
@@ -489,6 +496,9 @@ test('default-ignored files can be explicitly included', function (t) {
489496 t . ok ( fileExists ( 'npm-debug.log' ) , 'npm-debug.log included' )
490497 t . ok ( fileExists ( '.npmrc' ) , '.npmrc included' )
491498 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' )
492502 t . ok ( fileExists ( '.DS_Store' ) , '.DS_Store included' )
493503 t . ok ( fileExists ( '._ohno' ) , '._ohno included' )
494504 t . ok ( fileExists ( '._ohnoes' ) , '._ohnoes included' )
0 commit comments