summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/init-package-json/node_modules/validate-npm-package-name/test/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/init-package-json/node_modules/validate-npm-package-name/test/index.js')
-rw-r--r--deps/npm/node_modules/init-package-json/node_modules/validate-npm-package-name/test/index.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/deps/npm/node_modules/init-package-json/node_modules/validate-npm-package-name/test/index.js b/deps/npm/node_modules/init-package-json/node_modules/validate-npm-package-name/test/index.js
index 0a976dcc8..1a7dca5de 100644
--- a/deps/npm/node_modules/init-package-json/node_modules/validate-npm-package-name/test/index.js
+++ b/deps/npm/node_modules/init-package-json/node_modules/validate-npm-package-name/test/index.js
@@ -80,10 +80,15 @@ test("validate-npm-package-name", function (t) {
// Long Package Names
- t.deepEqual(validate("1234567890123456789012345678901234567890-more-than-fifty"), {
+ t.deepEqual(validate("ifyouwanttogetthesumoftwonumberswherethosetwonumbersarechosenbyfindingthelargestoftwooutofthreenumbersandsquaringthemwhichismultiplyingthembyitselfthenyoushouldinputthreenumbersintothisfunctionanditwilldothatforyou-"), {
validForNewPackages: false,
validForOldPackages: true,
- warnings: ["name can no longer contain more than 50 characters"]
+ warnings: ["name can no longer contain more than 214 characters"]
+ })
+
+ t.deepEqual(validate("ifyouwanttogetthesumoftwonumberswherethosetwonumbersarechosenbyfindingthelargestoftwooutofthreenumbersandsquaringthemwhichismultiplyingthembyitselfthenyoushouldinputthreenumbersintothisfunctionanditwilldothatforyou"), {
+ validForNewPackages: true,
+ validForOldPackages: true
})
// Legacy Mixed-Case