From 2b78288d4accd10c1b7cc6c36bc28045f5634d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Tue, 19 Feb 2019 17:07:49 -0800 Subject: [PATCH] test: add core to default inclusion tests in pack --- test/tap/pack-files-and-ignores.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/tap/pack-files-and-ignores.js b/test/tap/pack-files-and-ignores.js index 6d8b43e9d57d7..3bcb22c7fcbc9 100644 --- a/test/tap/pack-files-and-ignores.js +++ b/test/tap/pack-files-and-ignores.js @@ -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('')}), @@ -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') @@ -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', @@ -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('')}), @@ -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')