Skip to content

Commit

Permalink
test: add core to default inclusion tests in pack
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Feb 20, 2019
1 parent 57e771a commit 2b78288
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/tap/pack-files-and-ignores.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ test('certain files ignored by default', function (t) {
'npm-debug.log': File(''),
'.npmrc': File(''),
'.foo.swp': File(''),
'core': Dir({core: File(''), foo: File('')}),
'.DS_Store': Dir({foo: File('')}),
'._ohno': File(''),
'._ohnoes': Dir({noes: File('')}),
Expand All @@ -422,7 +423,11 @@ test('certain files ignored by default', function (t) {
t.notOk(fileExists('npm-debug.log'), 'npm-debug.log not included')
t.notOk(fileExists('.npmrc'), '.npmrc not included')
t.notOk(fileExists('.foo.swp'), '.foo.swp not included')
t.ok(fileExists('core'), 'core/ included')
t.ok(fileExists('core/foo'), 'core/foo included')
t.notOk(fileExists('core/core'), 'core/core not included')
t.notOk(fileExists('.DS_Store'), '.DS_Store not included')
t.notOk(fileExists('.DS_Store/foo'), '.DS_Store/foo not included')
t.notOk(fileExists('._ohno'), '._ohno not included')
t.notOk(fileExists('._ohnoes'), '._ohnoes not included')
t.notOk(fileExists('foo.orig'), 'foo.orig not included')
Expand Down Expand Up @@ -450,6 +455,7 @@ test('default-ignored files can be explicitly included', function (t) {
'npm-debug.log',
'.npmrc',
'.foo.swp',
'core',
'.DS_Store',
'._ohno',
'._ohnoes',
Expand All @@ -469,6 +475,7 @@ test('default-ignored files can be explicitly included', function (t) {
'npm-debug.log': File(''),
'.npmrc': File(''),
'.foo.swp': File(''),
'core': Dir({core: File(''), foo: File('')}),
'.DS_Store': Dir({foo: File('')}),
'._ohno': File(''),
'._ohnoes': Dir({noes: File('')}),
Expand All @@ -489,6 +496,9 @@ test('default-ignored files can be explicitly included', function (t) {
t.ok(fileExists('npm-debug.log'), 'npm-debug.log included')
t.ok(fileExists('.npmrc'), '.npmrc included')
t.ok(fileExists('.foo.swp'), '.foo.swp included')
t.ok(fileExists('core'), 'core/ included')
t.ok(fileExists('core/foo'), 'core/foo included')
t.ok(fileExists('core/core'), 'core/core included')
t.ok(fileExists('.DS_Store'), '.DS_Store included')
t.ok(fileExists('._ohno'), '._ohno included')
t.ok(fileExists('._ohnoes'), '._ohnoes included')
Expand Down

0 comments on commit 2b78288

Please sign in to comment.