Add JSDoc tests
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Andrey Sitnik · committed by Andrey Sitnik · parent 33702d6 · Browse files · 6 files·+109 added−5 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+109 added−5 removed
- other:+109 added−5 removed
Provenance
- Commit
e10d896- Tree
6c96824- Author
Andrey Sitnik <andrey@sitnik.ru>- Committer
Andrey Sitnik <andrey@sitnik.ru>- Parent
33702d6
6 files changed+109 added−5 removed
modified:.gitignore+1 added
4 unmodified lines5 npm-debug.log6 yarn-error.log7 8 coverage/9+docs/added:.jsdocrc+14 added
1+{2+ "plugins": [3+ "plugins/markdown"4+ ],5+ "opts": {6+ "template": "node_modules/docdash",7+ "destination": "docs/"8+ },9+ "templates": {10+ "default": {11+ "includeDate": false12+ }13+ }14+}modified:.npmignore+1 added
10 unmodified lines11 coverage/12 .travis.yml13 14 .yaspellerrc15+docs/modified:.yaspellerrc+7 added-1 removed
1 {2 "lang": "en",3 "ignoreCapitalization": true,4+ "excludeFiles": [5+ "docs/*.js.html"6+ ],7 "dictionary": [5- "Versioning"8+ "Versioning",9+ "docdash",10+ "JSDoc",11+ "js"12 ]13 }modified:package.json+4 added-1 removed
10 unmodified lines1112131415161718193 unmodified lines2324252627282930313233343335363738394023 unmodified lines10 unmodified lines "author": "Andrey Sitnik <andrey@sitnik.ru>", "license": "MIT", "repository": "ai/nanoid", "devDependencies": { "docdash": "^0.4.0", "eslint": "^4.3.0", "eslint-config-logux": "^16.0.0", "eslint-config-standard": "^10.2.1", "eslint-plugin-es5": "^1.1.0",3 unmodified lines "eslint-plugin-promise": "^3.5.0", "eslint-plugin-security": "^1.4.0", "eslint-plugin-standard": "^3.0.1", "jest": "^20.0.4", "jsdoc": "^3.5.4", "lint-staged": "^4.0.2", "pre-commit": "^1.2.2", "size-limit": "^0.8.0", "yaspeller-ci": "^0.6.0" }, "scripts": { "lint-staged": "lint-staged", "spellcheck": "yaspeller-ci *.md", "spellcheck": "yarn docs && yaspeller-ci *.md docs/*.html", "docs": "jsdoc --configure .jsdocrc *.js", "lint": "eslint *.js test/*.js", "test": "jest --coverage && yarn lint && yarn spellcheck && size-limit" }, "jest": {23 unmodified linesmodified:yarn.lock+82 added-3 removed
549 unmodified lines550 babylon@^6.17.2, babylon@^6.17.4:551 version "6.17.4"552 resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.17.4.tgz#3e8b7402b88d22c3423e137a1577883b15ff869a"553 554+babylon@~7.0.0-beta.19:555+ version "7.0.0-beta.19"556+ resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.19.tgz#e928c7e807e970e0536b078ab3e0c48f9e052503"557+558 balanced-match@^1.0.0:559 version "1.0.0"560 resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"561 20 unmodified lines582 resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a"583 dependencies:584 inherits "~2.0.0"585 586+bluebird@~3.5.0:587+ version "3.5.0"588+ resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.0.tgz#791420d7f551eea2897453a8a77653f96606d67c"589+590 bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0:591 version "4.11.7"592 resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.7.tgz#ddb048e50d9482790094c13eb3fcfc833ce7ab46"593 144 unmodified lines738 caseless@~0.12.0:739 version "0.12.0"740 resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"741 742+catharsis@~0.8.9:743+ version "0.8.9"744+ resolved "https://registry.yarnpkg.com/catharsis/-/catharsis-0.8.9.tgz#98cc890ca652dd2ef0e70b37925310ff9e90fc8b"745+ dependencies:746+ underscore-contrib "~0.3.0"747+748 center-align@^0.1.1:749 version "0.1.3"750 resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad"751 dependencies:373 unmodified lines1125 bn.js "^4.1.0"1126 miller-rabin "^4.0.0"1127 randombytes "^2.0.0"1128 1129+docdash@^0.4.0:1130+ version "0.4.0"1131+ resolved "https://registry.yarnpkg.com/docdash/-/docdash-0.4.0.tgz#05c3a50d83189981699ee0c076d3a3950db7ec00"1132+1133 doctrine@1.5.0:1134 version "1.5.0"1135 resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa"1136 dependencies:137 unmodified lines1274 escape-html@^1.0.3, escape-html@~1.0.3:1275 version "1.0.3"1276 resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"1277 1260-escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:1278+escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5, escape-string-regexp@~1.0.5:1279 version "1.0.5"1280 resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"1281 1282 escodegen@^1.6.1:545 unmodified lines1828 object-assign "^4.0.1"1829 pify "^2.0.0"1830 pinkie-promise "^2.0.0"1831 1814-graceful-fs@^4.1.11, graceful-fs@^4.1.2:1832+graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.9:1833 version "4.1.11"1834 resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"1835 1836 growly@^1.3.0:643 unmodified lines2480 dependencies:2481 argparse "^1.0.7"2482 esprima "^4.0.0"2483 2484+js2xmlparser@~3.0.0:2485+ version "3.0.0"2486+ resolved "https://registry.yarnpkg.com/js2xmlparser/-/js2xmlparser-3.0.0.tgz#3fb60eaa089c5440f9319f51760ccd07e2499733"2487+ dependencies:2488+ xmlcreate "^1.0.1"2489+2490 jsbn@~0.1.0:2491 version "0.1.1"2492 resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513"2493 2494 jschardet@^1.4.2:2495 version "1.5.0"2496 resolved "https://registry.yarnpkg.com/jschardet/-/jschardet-1.5.0.tgz#a61f310306a5a71188e1b1acd08add3cfbb08b1e"2497 2498+jsdoc@^3.5.4:2499+ version "3.5.4"2500+ resolved "https://registry.yarnpkg.com/jsdoc/-/jsdoc-3.5.4.tgz#ceeef7c4bac4335cb10ff41e3a0f58939a534428"2501+ dependencies:2502+ babylon "~7.0.0-beta.19"2503+ bluebird "~3.5.0"2504+ catharsis "~0.8.9"2505+ escape-string-regexp "~1.0.5"2506+ js2xmlparser "~3.0.0"2507+ klaw "~2.0.0"2508+ marked "~0.3.6"2509+ mkdirp "~0.5.1"2510+ requizzle "~0.2.1"2511+ strip-json-comments "~2.0.1"2512+ taffydb "2.6.2"2513+ underscore "~1.8.3"2514+2515 jsdom@^9.12.0:2516 version "9.12.0"2517 resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-9.12.0.tgz#e8c546fffcb06c00d4833ca84410fed7f8a097d4"2518 dependencies:71 unmodified lines2590 resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57"2591 dependencies:2592 is-buffer "^1.1.5"2593 2594+klaw@~2.0.0:2595+ version "2.0.0"2596+ resolved "https://registry.yarnpkg.com/klaw/-/klaw-2.0.0.tgz#59c128e0dc5ce410201151194eeb9cbf858650f6"2597+ dependencies:2598+ graceful-fs "^4.1.9"2599+2600 lazy-cache@^1.0.3:2601 version "1.0.4"2602 resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e"2603 168 unmodified lines2772 resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c"2773 dependencies:2774 tmpl "1.0.x"2775 2776+marked@~0.3.6:2777+ version "0.3.6"2778+ resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.6.tgz#b2c6c618fccece4ef86c4fc6cb8a7cbf5aeda8d7"2779+2780 media-typer@0.3.0:2781 version "0.3.0"2782 resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"2783 96 unmodified lines2880 minimist@~0.0.1:2881 version "0.0.10"2882 resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf"2883 2833-"mkdirp@>=0.5 0", mkdirp@^0.5.1, mkdirp@~0.5.0:2884+"mkdirp@>=0.5 0", mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1:2885 version "0.5.1"2886 resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"2887 dependencies:2888 minimist "0.0.8"617 unmodified lines3506 dependencies:3507 caller-path "^0.1.0"3508 resolve-from "^1.0.0"3509 3510+requizzle@~0.2.1:3511+ version "0.2.1"3512+ resolved "https://registry.yarnpkg.com/requizzle/-/requizzle-0.2.1.tgz#6943c3530c4d9a7e46f1cddd51c158fc670cdbde"3513+ dependencies:3514+ underscore "~1.6.0"3515+3516 resolve-from@^1.0.0:3517 version "1.0.1"3518 resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226"3519 401 unmodified lines3921 lodash "^4.0.0"3922 slice-ansi "0.0.4"3923 string-width "^2.0.0"3924 3925+taffydb@2.6.2:3926+ version "2.6.2"3927+ resolved "https://registry.yarnpkg.com/taffydb/-/taffydb-2.6.2.tgz#7cbcb64b5a141b6a2efc2c5d2c67b4e150b2a268"3928+3929 tapable@^0.2.7:3930 version "0.2.8"3931 resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.2.8.tgz#99372a5c999bf2df160afc0d74bed4f47948cd22"3932 142 unmodified lines4075 ultron@~1.1.0:4076 version "1.1.0"4077 resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.1.0.tgz#b07a2e6a541a815fc6a34ccd4533baec307ca864"4078 4079+underscore-contrib@~0.3.0:4080+ version "0.3.0"4081+ resolved "https://registry.yarnpkg.com/underscore-contrib/-/underscore-contrib-0.3.0.tgz#665b66c24783f8fa2b18c9f8cbb0e2c7d48c26c7"4082+ dependencies:4083+ underscore "1.6.0"4084+4085+underscore@1.6.0, underscore@~1.6.0:4086+ version "1.6.0"4087+ resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.6.0.tgz#8b38b10cacdef63337b8b24e4ff86d45aea529a8"4088+4089+underscore@~1.8.3:4090+ version "1.8.3"4091+ resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.8.3.tgz#4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022"4092+4093 unpipe@~1.0.0:4094 version "1.0.0"4095 resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"4096 225 unmodified lines4322 resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-4.2.1.tgz#aa58a3041a066f90eaa16c2f5389ff19f3f461a5"4323 dependencies:4324 lodash "^4.0.0"4325 4326+xmlcreate@^1.0.1:4327+ version "1.0.2"4328+ resolved "https://registry.yarnpkg.com/xmlcreate/-/xmlcreate-1.0.2.tgz#fa6bf762a60a413fb3dd8f4b03c5b269238d308f"4329+4330 xtend@^4.0.0, xtend@^4.0.1:4331 version "4.0.1"4332 resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"4333 94 unmodified lines