epuber-stylus-source 0.54.8 → 0.56.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/vendor/{History.md → Changelog.md} +50 -0
- data/vendor/Readme.md +37 -23
- data/vendor/bin/stylus +1 -2
- data/vendor/lib/convert/css.js +1 -1
- data/vendor/lib/functions/acos.js +20 -0
- data/vendor/lib/functions/asin.js +21 -0
- data/vendor/lib/functions/atan.js +21 -0
- data/vendor/lib/functions/convert-angle.js +19 -0
- data/vendor/lib/functions/index.js +3 -0
- data/vendor/lib/functions/url.js +5 -5
- data/vendor/lib/lexer.js +1 -1
- data/vendor/lib/middleware.js +1 -2
- data/vendor/lib/visitor/compiler.js +2 -2
- data/vendor/lib/visitor/deps-resolver.js +3 -0
- data/vendor/node_modules/{cliui/node_modules/ansi-regex → ansi-regex}/index.d.ts +0 -0
- data/vendor/node_modules/ansi-regex/index.js +4 -4
- data/vendor/node_modules/ansi-regex/package.json +53 -51
- data/vendor/node_modules/ansi-regex/readme.md +35 -3
- data/vendor/node_modules/assertion-error/History.md +24 -0
- data/vendor/node_modules/{mkdirp/LICENSE → assertion-error/README.md} +22 -2
- data/vendor/node_modules/assertion-error/index.d.ts +11 -0
- data/vendor/node_modules/assertion-error/index.js +116 -0
- data/vendor/node_modules/assertion-error/package.json +29 -0
- data/vendor/node_modules/camelcase/index.d.ts +5 -3
- data/vendor/node_modules/camelcase/index.js +40 -18
- data/vendor/node_modules/camelcase/package.json +1 -1
- data/vendor/node_modules/camelcase/readme.md +21 -5
- data/vendor/node_modules/chai/CODEOWNERS +1 -0
- data/vendor/node_modules/chai/CODE_OF_CONDUCT.md +58 -0
- data/vendor/node_modules/chai/CONTRIBUTING.md +218 -0
- data/vendor/node_modules/chai/History.md +1059 -0
- data/vendor/node_modules/{should-type-adaptors → chai}/LICENSE +1 -1
- data/vendor/node_modules/chai/README.md +212 -0
- data/vendor/node_modules/chai/ReleaseNotes.md +737 -0
- data/vendor/node_modules/chai/bower.json +26 -0
- data/vendor/node_modules/chai/chai.js +11464 -0
- data/vendor/node_modules/chai/index.js +1 -0
- data/vendor/node_modules/chai/index.mjs +14 -0
- data/vendor/node_modules/chai/karma.conf.js +34 -0
- data/vendor/node_modules/chai/karma.sauce.js +41 -0
- data/vendor/node_modules/chai/lib/chai/assertion.js +175 -0
- data/vendor/node_modules/chai/lib/chai/config.js +94 -0
- data/vendor/node_modules/chai/lib/chai/core/assertions.js +3853 -0
- data/vendor/node_modules/chai/lib/chai/interface/assert.js +3113 -0
- data/vendor/node_modules/chai/lib/chai/interface/expect.js +47 -0
- data/vendor/node_modules/chai/lib/chai/interface/should.js +219 -0
- data/vendor/node_modules/chai/lib/chai/utils/addChainableMethod.js +152 -0
- data/vendor/node_modules/chai/lib/chai/utils/addLengthGuard.js +60 -0
- data/vendor/node_modules/chai/lib/chai/utils/addMethod.js +68 -0
- data/vendor/node_modules/chai/lib/chai/utils/addProperty.js +72 -0
- data/vendor/node_modules/chai/lib/chai/utils/compareByInspect.js +31 -0
- data/vendor/node_modules/chai/lib/chai/utils/expectTypes.js +51 -0
- data/vendor/node_modules/chai/lib/chai/utils/flag.js +33 -0
- data/vendor/node_modules/chai/lib/chai/utils/getActual.js +20 -0
- data/vendor/node_modules/chai/lib/chai/utils/getEnumerableProperties.js +26 -0
- data/vendor/node_modules/chai/lib/chai/utils/getMessage.js +50 -0
- data/vendor/node_modules/chai/lib/chai/utils/getOperator.js +55 -0
- data/vendor/node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js +29 -0
- data/vendor/node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js +27 -0
- data/vendor/node_modules/chai/lib/chai/utils/getProperties.js +36 -0
- data/vendor/node_modules/chai/lib/chai/utils/index.js +178 -0
- data/vendor/node_modules/chai/lib/chai/utils/inspect.js +33 -0
- data/vendor/node_modules/chai/lib/chai/utils/isNaN.js +26 -0
- data/vendor/node_modules/chai/lib/chai/utils/isProxyEnabled.js +24 -0
- data/vendor/node_modules/chai/lib/chai/utils/objDisplay.js +50 -0
- data/vendor/node_modules/chai/lib/chai/utils/overwriteChainableMethod.js +69 -0
- data/vendor/node_modules/chai/lib/chai/utils/overwriteMethod.js +92 -0
- data/vendor/node_modules/chai/lib/chai/utils/overwriteProperty.js +92 -0
- data/vendor/node_modules/chai/lib/chai/utils/proxify.js +147 -0
- data/vendor/node_modules/chai/lib/chai/utils/test.js +28 -0
- data/vendor/node_modules/chai/lib/chai/utils/transferFlags.js +45 -0
- data/vendor/node_modules/chai/lib/chai.js +92 -0
- data/vendor/node_modules/chai/package.json +63 -0
- data/vendor/node_modules/chai/register-assert.js +1 -0
- data/vendor/node_modules/chai/register-expect.js +1 -0
- data/vendor/node_modules/chai/register-should.js +1 -0
- data/vendor/node_modules/chai/sauce.browsers.js +106 -0
- data/vendor/node_modules/chalk/package.json +1 -1
- data/vendor/node_modules/chalk/readme.md +7 -1
- data/vendor/node_modules/{source-map-url → check-error}/LICENSE +1 -3
- data/vendor/node_modules/check-error/README.md +207 -0
- data/vendor/node_modules/check-error/check-error.js +176 -0
- data/vendor/node_modules/check-error/index.js +172 -0
- data/vendor/node_modules/check-error/package.json +85 -0
- data/vendor/node_modules/chokidar/README.md +5 -4
- data/vendor/node_modules/chokidar/index.js +7 -1
- data/vendor/node_modules/chokidar/lib/constants.js +2 -0
- data/vendor/node_modules/chokidar/lib/fsevents-handler.js +2 -1
- data/vendor/node_modules/chokidar/lib/nodefs-handler.js +9 -1
- data/vendor/node_modules/chokidar/package.json +15 -8
- data/vendor/node_modules/chokidar/types/index.d.ts +4 -3
- data/vendor/node_modules/css/lib/stringify/source-map-support.js +10 -3
- data/vendor/node_modules/css/package.json +8 -9
- data/vendor/node_modules/debug/LICENSE +10 -9
- data/vendor/node_modules/debug/README.md +116 -3
- data/vendor/node_modules/debug/package.json +35 -19
- data/vendor/node_modules/debug/src/browser.js +194 -120
- data/vendor/node_modules/debug/src/common.js +274 -0
- data/vendor/node_modules/debug/src/index.js +4 -4
- data/vendor/node_modules/debug/src/node.js +174 -97
- data/vendor/node_modules/{resolve-url → deep-eql}/LICENSE +1 -3
- data/vendor/node_modules/deep-eql/README.md +116 -0
- data/vendor/node_modules/deep-eql/deep-eql.js +833 -0
- data/vendor/node_modules/deep-eql/index.js +455 -0
- data/vendor/node_modules/deep-eql/package.json +90 -0
- data/vendor/node_modules/{urix → get-func-name}/LICENSE +1 -3
- data/vendor/node_modules/get-func-name/README.md +123 -0
- data/vendor/node_modules/get-func-name/get-func-name.js +48 -0
- data/vendor/node_modules/get-func-name/index.js +44 -0
- data/vendor/node_modules/get-func-name/package.json +85 -0
- data/vendor/node_modules/glob/README.md +3 -0
- data/vendor/node_modules/glob/common.js +2 -0
- data/vendor/node_modules/glob/glob.js +4 -5
- data/vendor/node_modules/glob/package.json +2 -1
- data/vendor/node_modules/glob/sync.js +4 -5
- data/vendor/node_modules/{cliui/node_modules/is-fullwidth-code-point → is-fullwidth-code-point}/index.d.ts +0 -0
- data/vendor/node_modules/is-fullwidth-code-point/index.js +25 -21
- data/vendor/node_modules/is-fullwidth-code-point/license +4 -16
- data/vendor/node_modules/is-fullwidth-code-point/package.json +40 -43
- data/vendor/node_modules/is-fullwidth-code-point/readme.md +6 -6
- data/vendor/node_modules/is-glob/README.md +1 -1
- data/vendor/node_modules/is-glob/index.js +126 -24
- data/vendor/node_modules/is-glob/package.json +2 -2
- data/vendor/node_modules/is-unicode-supported/index.d.ts +14 -0
- data/vendor/node_modules/is-unicode-supported/index.js +13 -0
- data/vendor/node_modules/{cliui/node_modules/string-width → is-unicode-supported}/license +1 -1
- data/vendor/node_modules/is-unicode-supported/package.json +41 -0
- data/vendor/node_modules/is-unicode-supported/readme.md +35 -0
- data/vendor/node_modules/js-yaml/CHANGELOG.md +13 -0
- data/vendor/node_modules/js-yaml/README.md +1 -1
- data/vendor/node_modules/js-yaml/dist/js-yaml.js +90 -70
- data/vendor/node_modules/js-yaml/dist/js-yaml.min.js +2 -2
- data/vendor/node_modules/js-yaml/dist/js-yaml.mjs +84 -65
- data/vendor/node_modules/js-yaml/index.js +17 -0
- data/vendor/node_modules/js-yaml/lib/schema.js +9 -9
- data/vendor/node_modules/js-yaml/lib/type.js +1 -0
- data/vendor/node_modules/js-yaml/package.json +1 -1
- data/vendor/node_modules/jscoverage/node_modules/ms/index.js +152 -0
- data/vendor/node_modules/{should-format/LICENSE → jscoverage/node_modules/ms/license.md} +1 -2
- data/vendor/node_modules/jscoverage/node_modules/ms/package.json +37 -0
- data/vendor/node_modules/jscoverage/node_modules/ms/readme.md +51 -0
- data/vendor/node_modules/log-symbols/index.d.ts +2 -2
- data/vendor/node_modules/log-symbols/index.js +3 -4
- data/vendor/node_modules/log-symbols/package.json +7 -5
- data/vendor/node_modules/log-symbols/readme.md +3 -3
- data/vendor/node_modules/loupe/CHANGELOG.md +5 -0
- data/vendor/node_modules/{cliui/node_modules/strip-ansi/license → loupe/LICENSE} +2 -2
- data/vendor/node_modules/loupe/README.md +63 -0
- data/vendor/node_modules/loupe/index.js +195 -0
- data/vendor/node_modules/loupe/lib/arguments.js +7 -0
- data/vendor/node_modules/loupe/lib/array.js +20 -0
- data/vendor/node_modules/loupe/lib/bigint.js +7 -0
- data/vendor/node_modules/loupe/lib/class.js +18 -0
- data/vendor/node_modules/loupe/lib/date.js +8 -0
- data/vendor/node_modules/loupe/lib/error.js +34 -0
- data/vendor/node_modules/loupe/lib/function.js +10 -0
- data/vendor/node_modules/loupe/lib/helpers.js +177 -0
- data/vendor/node_modules/loupe/lib/html.js +40 -0
- data/vendor/node_modules/loupe/lib/map.js +27 -0
- data/vendor/node_modules/loupe/lib/number.js +18 -0
- data/vendor/node_modules/loupe/lib/object.js +31 -0
- data/vendor/node_modules/loupe/lib/promise.js +16 -0
- data/vendor/node_modules/loupe/lib/regexp.js +8 -0
- data/vendor/node_modules/loupe/lib/set.js +16 -0
- data/vendor/node_modules/loupe/lib/string.js +29 -0
- data/vendor/node_modules/loupe/lib/symbol.js +6 -0
- data/vendor/node_modules/loupe/lib/typedarray.js +45 -0
- data/vendor/node_modules/loupe/loupe.js +852 -0
- data/vendor/node_modules/loupe/package.json +141 -0
- data/vendor/node_modules/minimatch/README.md +22 -1
- data/vendor/node_modules/minimatch/minimatch.js +93 -69
- data/vendor/node_modules/minimatch/package.json +6 -3
- data/vendor/node_modules/mocha/LICENSE +1 -1
- data/vendor/node_modules/mocha/README.md +1 -1
- data/vendor/node_modules/mocha/bin/mocha +18 -27
- data/vendor/node_modules/mocha/browser-entry.js +27 -20
- data/vendor/node_modules/mocha/lib/browser/growl.js +5 -5
- data/vendor/node_modules/mocha/lib/browser/parse-query.js +1 -1
- data/vendor/node_modules/mocha/lib/browser/progress.js +6 -6
- data/vendor/node_modules/mocha/lib/cli/cli.js +3 -2
- data/vendor/node_modules/mocha/lib/cli/config.js +7 -12
- data/vendor/node_modules/mocha/lib/cli/lookup-files.js +2 -8
- data/vendor/node_modules/mocha/lib/cli/node-flags.js +2 -5
- data/vendor/node_modules/mocha/lib/cli/one-and-dones.js +1 -2
- data/vendor/node_modules/mocha/lib/cli/run-helpers.js +15 -15
- data/vendor/node_modules/mocha/lib/cli/run-option-metadata.js +4 -0
- data/vendor/node_modules/mocha/lib/cli/run.js +13 -1
- data/vendor/node_modules/mocha/lib/cli/watch-run.js +3 -6
- data/vendor/node_modules/mocha/lib/context.js +5 -5
- data/vendor/node_modules/mocha/lib/errors.js +3 -3
- data/vendor/node_modules/mocha/lib/hook.js +9 -3
- data/vendor/node_modules/mocha/lib/interfaces/bdd.js +23 -20
- data/vendor/node_modules/mocha/lib/interfaces/common.js +7 -7
- data/vendor/node_modules/mocha/lib/interfaces/exports.js +1 -1
- data/vendor/node_modules/mocha/lib/interfaces/qunit.js +7 -7
- data/vendor/node_modules/mocha/lib/interfaces/tdd.js +9 -9
- data/vendor/node_modules/mocha/lib/mocha.js +105 -99
- data/vendor/node_modules/mocha/lib/nodejs/buffered-worker-pool.js +17 -1
- data/vendor/node_modules/mocha/lib/nodejs/esm-utils.js +124 -0
- data/vendor/node_modules/mocha/lib/reporters/base.js +49 -35
- data/vendor/node_modules/mocha/lib/reporters/doc.js +4 -4
- data/vendor/node_modules/mocha/lib/reporters/dot.js +5 -5
- data/vendor/node_modules/mocha/lib/reporters/html.js +12 -12
- data/vendor/node_modules/mocha/lib/reporters/json-stream.js +4 -4
- data/vendor/node_modules/mocha/lib/reporters/json.js +35 -10
- data/vendor/node_modules/mocha/lib/reporters/landing.js +5 -5
- data/vendor/node_modules/mocha/lib/reporters/list.js +5 -5
- data/vendor/node_modules/mocha/lib/reporters/markdown.js +5 -5
- data/vendor/node_modules/mocha/lib/reporters/min.js +1 -1
- data/vendor/node_modules/mocha/lib/reporters/nyan.js +16 -16
- data/vendor/node_modules/mocha/lib/reporters/progress.js +3 -3
- data/vendor/node_modules/mocha/lib/reporters/spec.js +6 -6
- data/vendor/node_modules/mocha/lib/reporters/tap.js +17 -17
- data/vendor/node_modules/mocha/lib/reporters/xunit.js +9 -9
- data/vendor/node_modules/mocha/lib/runnable.js +21 -21
- data/vendor/node_modules/mocha/lib/runner.js +63 -61
- data/vendor/node_modules/mocha/lib/stats-collector.js +7 -7
- data/vendor/node_modules/mocha/lib/suite.js +46 -75
- data/vendor/node_modules/mocha/lib/test.js +5 -5
- data/vendor/node_modules/mocha/lib/utils.js +19 -114
- data/vendor/node_modules/mocha/mocha-es2018.js +19794 -0
- data/vendor/node_modules/mocha/mocha.js +8059 -6920
- data/vendor/node_modules/mocha/mocha.js.map +1 -1
- data/vendor/node_modules/mocha/node_modules/debug/LICENSE +10 -9
- data/vendor/node_modules/mocha/node_modules/debug/README.md +24 -1
- data/vendor/node_modules/mocha/node_modules/debug/package.json +6 -6
- data/vendor/node_modules/mocha/node_modules/debug/src/common.js +15 -2
- data/vendor/node_modules/{semver → mocha/node_modules/minimatch}/LICENSE +1 -1
- data/vendor/node_modules/mocha/node_modules/minimatch/README.md +230 -0
- data/vendor/node_modules/mocha/node_modules/minimatch/minimatch.js +908 -0
- data/vendor/node_modules/mocha/node_modules/minimatch/package.json +31 -0
- data/vendor/node_modules/mocha/package.json +66 -65
- data/vendor/node_modules/ms/index.js +29 -19
- data/vendor/node_modules/ms/package.json +6 -6
- data/vendor/node_modules/ms/readme.md +18 -9
- data/vendor/node_modules/nanoid/README.md +9 -473
- data/vendor/node_modules/nanoid/async/index.browser.cjs +34 -0
- data/vendor/node_modules/nanoid/async/index.browser.js +7 -43
- data/vendor/node_modules/nanoid/async/index.cjs +5 -41
- data/vendor/node_modules/nanoid/async/index.d.ts +7 -7
- data/vendor/node_modules/nanoid/async/index.js +5 -41
- data/vendor/node_modules/nanoid/async/index.native.js +5 -36
- data/vendor/node_modules/nanoid/async/package.json +2 -1
- data/vendor/node_modules/nanoid/bin/nanoid.cjs +52 -2
- data/vendor/node_modules/nanoid/index.browser.cjs +37 -0
- data/vendor/node_modules/nanoid/index.browser.js +5 -73
- data/vendor/node_modules/nanoid/index.cjs +14 -49
- data/vendor/node_modules/nanoid/index.d.ts +9 -6
- data/vendor/node_modules/nanoid/index.js +14 -49
- data/vendor/node_modules/nanoid/non-secure/index.cjs +3 -12
- data/vendor/node_modules/nanoid/non-secure/index.d.ts +8 -5
- data/vendor/node_modules/nanoid/non-secure/index.js +3 -12
- data/vendor/node_modules/nanoid/package.json +14 -10
- data/vendor/node_modules/nanoid/url-alphabet/index.cjs +1 -4
- data/vendor/node_modules/nanoid/url-alphabet/index.js +1 -4
- data/vendor/node_modules/pathval/CHANGELOG.md +18 -0
- data/vendor/node_modules/pathval/LICENSE +16 -0
- data/vendor/node_modules/pathval/README.md +147 -0
- data/vendor/node_modules/pathval/index.js +301 -0
- data/vendor/node_modules/pathval/package.json +80 -0
- data/vendor/node_modules/pathval/pathval.js +1 -0
- data/vendor/node_modules/picomatch/CHANGELOG.md +16 -0
- data/vendor/node_modules/picomatch/README.md +34 -17
- data/vendor/node_modules/picomatch/lib/parse.js +19 -6
- data/vendor/node_modules/picomatch/lib/picomatch.js +34 -31
- data/vendor/node_modules/picomatch/lib/scan.js +8 -2
- data/vendor/node_modules/picomatch/package.json +1 -1
- data/vendor/node_modules/readdirp/index.js +11 -6
- data/vendor/node_modules/readdirp/package.json +1 -1
- data/vendor/node_modules/serialize-javascript/README.md +2 -4
- data/vendor/node_modules/serialize-javascript/index.js +11 -2
- data/vendor/node_modules/serialize-javascript/package.json +2 -2
- data/vendor/node_modules/source-map-resolve/LICENSE +1 -1
- data/vendor/node_modules/source-map-resolve/changelog.md +6 -0
- data/vendor/node_modules/source-map-resolve/{lib/source-map-resolve-node.js → index.js} +48 -13
- data/vendor/node_modules/source-map-resolve/package.json +7 -14
- data/vendor/node_modules/source-map-resolve/readme.md +1 -39
- data/vendor/node_modules/{cliui/node_modules/string-width → string-width}/index.d.ts +0 -0
- data/vendor/node_modules/string-width/index.js +16 -5
- data/vendor/node_modules/string-width/package.json +11 -10
- data/vendor/node_modules/string-width/readme.md +15 -7
- data/vendor/node_modules/{cliui/node_modules/strip-ansi → strip-ansi}/index.d.ts +0 -0
- data/vendor/node_modules/strip-ansi/index.js +1 -1
- data/vendor/node_modules/strip-ansi/package.json +52 -50
- data/vendor/node_modules/strip-ansi/readme.md +12 -5
- data/vendor/node_modules/{fsevents → type-detect}/LICENSE +1 -4
- data/vendor/node_modules/type-detect/README.md +228 -0
- data/vendor/node_modules/type-detect/index.js +378 -0
- data/vendor/node_modules/type-detect/package.json +1 -0
- data/vendor/node_modules/type-detect/type-detect.js +388 -0
- data/vendor/node_modules/workerpool/HISTORY.md +42 -0
- data/vendor/node_modules/workerpool/README.md +11 -1
- data/vendor/node_modules/workerpool/dist/worker.js +9 -42
- data/vendor/node_modules/workerpool/dist/worker.js.map +1 -1
- data/vendor/node_modules/workerpool/dist/workerpool.js +117 -74
- data/vendor/node_modules/workerpool/dist/workerpool.js.map +1 -1
- data/vendor/node_modules/workerpool/dist/workerpool.min.js +1 -1
- data/vendor/node_modules/workerpool/dist/workerpool.min.js.LICENSE.txt +3 -3
- data/vendor/node_modules/workerpool/dist/workerpool.min.js.map +1 -1
- data/vendor/node_modules/workerpool/package.json +11 -11
- data/vendor/node_modules/workerpool/src/Pool.js +29 -4
- data/vendor/node_modules/workerpool/src/WorkerHandler.js +17 -4
- data/vendor/node_modules/workerpool/src/generated/embeddedWorker.js +1 -1
- data/vendor/node_modules/workerpool/src/header.js +1 -1
- data/vendor/node_modules/workerpool/src/types.js +2 -1
- data/vendor/package-lock.json +401 -664
- data/vendor/package.json +7 -9
- metadata +139 -175
- data/vendor/node_modules/cliui/node_modules/ansi-regex/index.js +0 -10
- data/vendor/node_modules/cliui/node_modules/ansi-regex/license +0 -9
- data/vendor/node_modules/cliui/node_modules/ansi-regex/package.json +0 -55
- data/vendor/node_modules/cliui/node_modules/ansi-regex/readme.md +0 -78
- data/vendor/node_modules/cliui/node_modules/is-fullwidth-code-point/index.js +0 -50
- data/vendor/node_modules/cliui/node_modules/is-fullwidth-code-point/license +0 -9
- data/vendor/node_modules/cliui/node_modules/is-fullwidth-code-point/package.json +0 -42
- data/vendor/node_modules/cliui/node_modules/is-fullwidth-code-point/readme.md +0 -39
- data/vendor/node_modules/cliui/node_modules/string-width/index.js +0 -47
- data/vendor/node_modules/cliui/node_modules/string-width/package.json +0 -56
- data/vendor/node_modules/cliui/node_modules/string-width/readme.md +0 -50
- data/vendor/node_modules/cliui/node_modules/strip-ansi/index.js +0 -4
- data/vendor/node_modules/cliui/node_modules/strip-ansi/package.json +0 -54
- data/vendor/node_modules/cliui/node_modules/strip-ansi/readme.md +0 -46
- data/vendor/node_modules/css-parse/Readme.md +0 -15
- data/vendor/node_modules/css-parse/index.js +0 -1
- data/vendor/node_modules/css-parse/package.json +0 -23
- data/vendor/node_modules/debug/CHANGELOG.md +0 -395
- data/vendor/node_modules/debug/Makefile +0 -58
- data/vendor/node_modules/debug/karma.conf.js +0 -70
- data/vendor/node_modules/debug/node.js +0 -1
- data/vendor/node_modules/debug/src/debug.js +0 -225
- data/vendor/node_modules/fsevents/README.md +0 -83
- data/vendor/node_modules/fsevents/fsevents.d.ts +0 -46
- data/vendor/node_modules/fsevents/fsevents.js +0 -82
- data/vendor/node_modules/fsevents/fsevents.node +0 -0
- data/vendor/node_modules/fsevents/package.json +0 -62
- data/vendor/node_modules/glob/changelog.md +0 -67
- data/vendor/node_modules/mkdirp/CHANGELOG.md +0 -15
- data/vendor/node_modules/mkdirp/bin/cmd.js +0 -68
- data/vendor/node_modules/mkdirp/index.js +0 -31
- data/vendor/node_modules/mkdirp/lib/find-made.js +0 -29
- data/vendor/node_modules/mkdirp/lib/mkdirp-manual.js +0 -64
- data/vendor/node_modules/mkdirp/lib/mkdirp-native.js +0 -39
- data/vendor/node_modules/mkdirp/lib/opts-arg.js +0 -23
- data/vendor/node_modules/mkdirp/lib/path-arg.js +0 -29
- data/vendor/node_modules/mkdirp/lib/use-native.js +0 -10
- data/vendor/node_modules/mkdirp/package.json +0 -44
- data/vendor/node_modules/mkdirp/readme.markdown +0 -266
- data/vendor/node_modules/mocha/CHANGELOG.md +0 -931
- data/vendor/node_modules/mocha/lib/esm-utils.js +0 -58
- data/vendor/node_modules/mocha/node_modules/glob/LICENSE +0 -21
- data/vendor/node_modules/mocha/node_modules/glob/README.md +0 -375
- data/vendor/node_modules/mocha/node_modules/glob/changelog.md +0 -67
- data/vendor/node_modules/mocha/node_modules/glob/common.js +0 -240
- data/vendor/node_modules/mocha/node_modules/glob/glob.js +0 -790
- data/vendor/node_modules/mocha/node_modules/glob/package.json +0 -46
- data/vendor/node_modules/mocha/node_modules/glob/sync.js +0 -486
- data/vendor/node_modules/nanoid/CHANGELOG.md +0 -241
- data/vendor/node_modules/nanoid/index.dev.js +0 -105
- data/vendor/node_modules/nanoid/index.prod.js +0 -105
- data/vendor/node_modules/resolve-url/bower.json +0 -15
- data/vendor/node_modules/resolve-url/changelog.md +0 -15
- data/vendor/node_modules/resolve-url/component.json +0 -15
- data/vendor/node_modules/resolve-url/package.json +0 -34
- data/vendor/node_modules/resolve-url/readme.md +0 -83
- data/vendor/node_modules/resolve-url/resolve-url.js +0 -47
- data/vendor/node_modules/resolve-url/test/resolve-url.js +0 -70
- data/vendor/node_modules/semver/CHANGELOG.md +0 -70
- data/vendor/node_modules/semver/README.md +0 -443
- data/vendor/node_modules/semver/bin/semver.js +0 -174
- data/vendor/node_modules/semver/package.json +0 -28
- data/vendor/node_modules/semver/range.bnf +0 -16
- data/vendor/node_modules/semver/semver.js +0 -1596
- data/vendor/node_modules/should/CONTRIBUTING.md +0 -14
- data/vendor/node_modules/should/History.md +0 -554
- data/vendor/node_modules/should/LICENSE +0 -20
- data/vendor/node_modules/should/Readme.md +0 -223
- data/vendor/node_modules/should/as-function.js +0 -2935
- data/vendor/node_modules/should/cjs/should.js +0 -2962
- data/vendor/node_modules/should/es6/should.js +0 -2958
- data/vendor/node_modules/should/package.json +0 -51
- data/vendor/node_modules/should/should.d.ts +0 -243
- data/vendor/node_modules/should/should.js +0 -4371
- data/vendor/node_modules/should-equal/LICENSE +0 -21
- data/vendor/node_modules/should-equal/README.md +0 -24
- data/vendor/node_modules/should-equal/cjs/should-equal.js +0 -333
- data/vendor/node_modules/should-equal/es6/should-equal.js +0 -329
- data/vendor/node_modules/should-equal/package.json +0 -38
- data/vendor/node_modules/should-format/README.md +0 -6
- data/vendor/node_modules/should-format/cjs/should-format.js +0 -532
- data/vendor/node_modules/should-format/es6/should-format.js +0 -528
- data/vendor/node_modules/should-format/package.json +0 -44
- data/vendor/node_modules/should-type/LICENSE +0 -22
- data/vendor/node_modules/should-type/README.md +0 -4
- data/vendor/node_modules/should-type/cjs/should-type.js +0 -263
- data/vendor/node_modules/should-type/es6/should-type.js +0 -261
- data/vendor/node_modules/should-type/package.json +0 -38
- data/vendor/node_modules/should-type-adaptors/README.md +0 -1
- data/vendor/node_modules/should-type-adaptors/cjs/should-type-adaptors.js +0 -288
- data/vendor/node_modules/should-type-adaptors/es6/should-type-adaptors.js +0 -272
- data/vendor/node_modules/should-type-adaptors/package.json +0 -43
- data/vendor/node_modules/should-util/LICENSE +0 -21
- data/vendor/node_modules/should-util/README.md +0 -2
- data/vendor/node_modules/should-util/cjs/should-util.js +0 -50
- data/vendor/node_modules/should-util/es6/should-util.js +0 -42
- data/vendor/node_modules/should-util/package.json +0 -40
- data/vendor/node_modules/source-map-resolve/lib/decode-uri-component.js +0 -8
- data/vendor/node_modules/source-map-resolve/lib/resolve-url.js +0 -9
- data/vendor/node_modules/source-map-resolve/source-map-resolve.js +0 -348
- data/vendor/node_modules/source-map-url/changelog.md +0 -57
- data/vendor/node_modules/source-map-url/package.json +0 -39
- data/vendor/node_modules/source-map-url/readme.md +0 -97
- data/vendor/node_modules/source-map-url/source-map-url.js +0 -57
- data/vendor/node_modules/urix/index.js +0 -17
- data/vendor/node_modules/urix/package.json +0 -25
- data/vendor/node_modules/urix/readme.md +0 -46
- data/vendor/node_modules/urix/test/index.js +0 -43
- data/vendor/node_modules/wide-align/LICENSE +0 -14
- data/vendor/node_modules/wide-align/README.md +0 -47
- data/vendor/node_modules/wide-align/align.js +0 -65
- data/vendor/node_modules/wide-align/package.json +0 -33
- data/vendor/node_modules/wrap-ansi/node_modules/ansi-regex/index.d.ts +0 -37
- data/vendor/node_modules/wrap-ansi/node_modules/ansi-regex/index.js +0 -10
- data/vendor/node_modules/wrap-ansi/node_modules/ansi-regex/license +0 -9
- data/vendor/node_modules/wrap-ansi/node_modules/ansi-regex/package.json +0 -55
- data/vendor/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md +0 -78
- data/vendor/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- data/vendor/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.js +0 -50
- data/vendor/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/license +0 -9
- data/vendor/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/package.json +0 -42
- data/vendor/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/readme.md +0 -39
- data/vendor/node_modules/wrap-ansi/node_modules/string-width/index.d.ts +0 -29
- data/vendor/node_modules/wrap-ansi/node_modules/string-width/index.js +0 -47
- data/vendor/node_modules/wrap-ansi/node_modules/string-width/license +0 -9
- data/vendor/node_modules/wrap-ansi/node_modules/string-width/package.json +0 -56
- data/vendor/node_modules/wrap-ansi/node_modules/string-width/readme.md +0 -50
- data/vendor/node_modules/wrap-ansi/node_modules/strip-ansi/index.d.ts +0 -17
- data/vendor/node_modules/wrap-ansi/node_modules/strip-ansi/index.js +0 -4
- data/vendor/node_modules/wrap-ansi/node_modules/strip-ansi/license +0 -9
- data/vendor/node_modules/wrap-ansi/node_modules/strip-ansi/package.json +0 -54
- data/vendor/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md +0 -46
- data/vendor/node_modules/yargs/node_modules/ansi-regex/index.d.ts +0 -37
- data/vendor/node_modules/yargs/node_modules/ansi-regex/index.js +0 -10
- data/vendor/node_modules/yargs/node_modules/ansi-regex/license +0 -9
- data/vendor/node_modules/yargs/node_modules/ansi-regex/package.json +0 -55
- data/vendor/node_modules/yargs/node_modules/ansi-regex/readme.md +0 -78
- data/vendor/node_modules/yargs/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- data/vendor/node_modules/yargs/node_modules/is-fullwidth-code-point/index.js +0 -50
- data/vendor/node_modules/yargs/node_modules/is-fullwidth-code-point/license +0 -9
- data/vendor/node_modules/yargs/node_modules/is-fullwidth-code-point/package.json +0 -42
- data/vendor/node_modules/yargs/node_modules/is-fullwidth-code-point/readme.md +0 -39
- data/vendor/node_modules/yargs/node_modules/string-width/index.d.ts +0 -29
- data/vendor/node_modules/yargs/node_modules/string-width/index.js +0 -47
- data/vendor/node_modules/yargs/node_modules/string-width/license +0 -9
- data/vendor/node_modules/yargs/node_modules/string-width/package.json +0 -56
- data/vendor/node_modules/yargs/node_modules/string-width/readme.md +0 -50
- data/vendor/node_modules/yargs/node_modules/strip-ansi/index.d.ts +0 -17
- data/vendor/node_modules/yargs/node_modules/strip-ansi/index.js +0 -4
- data/vendor/node_modules/yargs/node_modules/strip-ansi/license +0 -9
- data/vendor/node_modules/yargs/node_modules/strip-ansi/package.json +0 -54
- data/vendor/node_modules/yargs/node_modules/strip-ansi/readme.md +0 -46
- data/vendor/test.js +0 -31
@@ -40,20 +40,20 @@ function List(runner, options) {
|
|
40
40
|
var self = this;
|
41
41
|
var n = 0;
|
42
42
|
|
43
|
-
runner.on(EVENT_RUN_BEGIN, function() {
|
43
|
+
runner.on(EVENT_RUN_BEGIN, function () {
|
44
44
|
Base.consoleLog();
|
45
45
|
});
|
46
46
|
|
47
|
-
runner.on(EVENT_TEST_BEGIN, function(test) {
|
47
|
+
runner.on(EVENT_TEST_BEGIN, function (test) {
|
48
48
|
process.stdout.write(color('pass', ' ' + test.fullTitle() + ': '));
|
49
49
|
});
|
50
50
|
|
51
|
-
runner.on(EVENT_TEST_PENDING, function(test) {
|
51
|
+
runner.on(EVENT_TEST_PENDING, function (test) {
|
52
52
|
var fmt = color('checkmark', ' -') + color('pending', ' %s');
|
53
53
|
Base.consoleLog(fmt, test.fullTitle());
|
54
54
|
});
|
55
55
|
|
56
|
-
runner.on(EVENT_TEST_PASS, function(test) {
|
56
|
+
runner.on(EVENT_TEST_PASS, function (test) {
|
57
57
|
var fmt =
|
58
58
|
color('checkmark', ' ' + Base.symbols.ok) +
|
59
59
|
color('pass', ' %s: ') +
|
@@ -62,7 +62,7 @@ function List(runner, options) {
|
|
62
62
|
Base.consoleLog(fmt, test.fullTitle(), test.duration);
|
63
63
|
});
|
64
64
|
|
65
|
-
runner.on(EVENT_TEST_FAIL, function(test) {
|
65
|
+
runner.on(EVENT_TEST_FAIL, function (test) {
|
66
66
|
cursor.CR();
|
67
67
|
Base.consoleLog(color('fail', ' %d) %s'), ++n, test.fullTitle());
|
68
68
|
});
|
@@ -51,7 +51,7 @@ function Markdown(runner, options) {
|
|
51
51
|
var key = SUITE_PREFIX + suite.title;
|
52
52
|
|
53
53
|
obj = obj[key] = obj[key] || {suite: suite};
|
54
|
-
suite.suites.forEach(function(suite) {
|
54
|
+
suite.suites.forEach(function (suite) {
|
55
55
|
mapTOC(suite, obj);
|
56
56
|
});
|
57
57
|
|
@@ -83,18 +83,18 @@ function Markdown(runner, options) {
|
|
83
83
|
|
84
84
|
generateTOC(runner.suite);
|
85
85
|
|
86
|
-
runner.on(EVENT_SUITE_BEGIN, function(suite) {
|
86
|
+
runner.on(EVENT_SUITE_BEGIN, function (suite) {
|
87
87
|
++level;
|
88
88
|
var slug = utils.slug(suite.fullTitle());
|
89
89
|
buf += '<a name="' + slug + '"></a>' + '\n';
|
90
90
|
buf += title(suite.title) + '\n';
|
91
91
|
});
|
92
92
|
|
93
|
-
runner.on(EVENT_SUITE_END, function() {
|
93
|
+
runner.on(EVENT_SUITE_END, function () {
|
94
94
|
--level;
|
95
95
|
});
|
96
96
|
|
97
|
-
runner.on(EVENT_TEST_PASS, function(test) {
|
97
|
+
runner.on(EVENT_TEST_PASS, function (test) {
|
98
98
|
var code = utils.clean(test.body);
|
99
99
|
buf += test.title + '.\n';
|
100
100
|
buf += '\n```js\n';
|
@@ -102,7 +102,7 @@ function Markdown(runner, options) {
|
|
102
102
|
buf += '```\n\n';
|
103
103
|
});
|
104
104
|
|
105
|
-
runner.once(EVENT_RUN_END, function() {
|
105
|
+
runner.once(EVENT_RUN_END, function () {
|
106
106
|
process.stdout.write('# TOC\n');
|
107
107
|
process.stdout.write(generateTOC(runner.suite));
|
108
108
|
process.stdout.write(buf);
|
@@ -34,7 +34,7 @@ exports = module.exports = Min;
|
|
34
34
|
function Min(runner, options) {
|
35
35
|
Base.call(this, runner, options);
|
36
36
|
|
37
|
-
runner.on(EVENT_RUN_BEGIN, function() {
|
37
|
+
runner.on(EVENT_RUN_BEGIN, function () {
|
38
38
|
// clear screen
|
39
39
|
process.stdout.write('\u001b[2J');
|
40
40
|
// set cursor position
|
@@ -46,24 +46,24 @@ function NyanCat(runner, options) {
|
|
46
46
|
this.trajectories = [[], [], [], []];
|
47
47
|
this.trajectoryWidthMax = width - nyanCatWidth;
|
48
48
|
|
49
|
-
runner.on(EVENT_RUN_BEGIN, function() {
|
49
|
+
runner.on(EVENT_RUN_BEGIN, function () {
|
50
50
|
Base.cursor.hide();
|
51
51
|
self.draw();
|
52
52
|
});
|
53
53
|
|
54
|
-
runner.on(EVENT_TEST_PENDING, function() {
|
54
|
+
runner.on(EVENT_TEST_PENDING, function () {
|
55
55
|
self.draw();
|
56
56
|
});
|
57
57
|
|
58
|
-
runner.on(EVENT_TEST_PASS, function() {
|
58
|
+
runner.on(EVENT_TEST_PASS, function () {
|
59
59
|
self.draw();
|
60
60
|
});
|
61
61
|
|
62
|
-
runner.on(EVENT_TEST_FAIL, function() {
|
62
|
+
runner.on(EVENT_TEST_FAIL, function () {
|
63
63
|
self.draw();
|
64
64
|
});
|
65
65
|
|
66
|
-
runner.once(EVENT_RUN_END, function() {
|
66
|
+
runner.once(EVENT_RUN_END, function () {
|
67
67
|
Base.cursor.show();
|
68
68
|
for (var i = 0; i < self.numberOfLines; i++) {
|
69
69
|
write('\n');
|
@@ -83,7 +83,7 @@ inherits(NyanCat, Base);
|
|
83
83
|
* @private
|
84
84
|
*/
|
85
85
|
|
86
|
-
NyanCat.prototype.draw = function() {
|
86
|
+
NyanCat.prototype.draw = function () {
|
87
87
|
this.appendRainbow();
|
88
88
|
this.drawScoreboard();
|
89
89
|
this.drawRainbow();
|
@@ -98,7 +98,7 @@ NyanCat.prototype.draw = function() {
|
|
98
98
|
* @private
|
99
99
|
*/
|
100
100
|
|
101
|
-
NyanCat.prototype.drawScoreboard = function() {
|
101
|
+
NyanCat.prototype.drawScoreboard = function () {
|
102
102
|
var stats = this.stats;
|
103
103
|
|
104
104
|
function draw(type, n) {
|
@@ -121,7 +121,7 @@ NyanCat.prototype.drawScoreboard = function() {
|
|
121
121
|
* @private
|
122
122
|
*/
|
123
123
|
|
124
|
-
NyanCat.prototype.appendRainbow = function() {
|
124
|
+
NyanCat.prototype.appendRainbow = function () {
|
125
125
|
var segment = this.tick ? '_' : '-';
|
126
126
|
var rainbowified = this.rainbowify(segment);
|
127
127
|
|
@@ -140,10 +140,10 @@ NyanCat.prototype.appendRainbow = function() {
|
|
140
140
|
* @private
|
141
141
|
*/
|
142
142
|
|
143
|
-
NyanCat.prototype.drawRainbow = function() {
|
143
|
+
NyanCat.prototype.drawRainbow = function () {
|
144
144
|
var self = this;
|
145
145
|
|
146
|
-
this.trajectories.forEach(function(line) {
|
146
|
+
this.trajectories.forEach(function (line) {
|
147
147
|
write('\u001b[' + self.scoreboardWidth + 'C');
|
148
148
|
write(line.join(''));
|
149
149
|
write('\n');
|
@@ -157,7 +157,7 @@ NyanCat.prototype.drawRainbow = function() {
|
|
157
157
|
*
|
158
158
|
* @private
|
159
159
|
*/
|
160
|
-
NyanCat.prototype.drawNyanCat = function() {
|
160
|
+
NyanCat.prototype.drawNyanCat = function () {
|
161
161
|
var self = this;
|
162
162
|
var startWidth = this.scoreboardWidth + this.trajectories[0].length;
|
163
163
|
var dist = '\u001b[' + startWidth + 'C';
|
@@ -193,7 +193,7 @@ NyanCat.prototype.drawNyanCat = function() {
|
|
193
193
|
* @return {string}
|
194
194
|
*/
|
195
195
|
|
196
|
-
NyanCat.prototype.face = function() {
|
196
|
+
NyanCat.prototype.face = function () {
|
197
197
|
var stats = this.stats;
|
198
198
|
if (stats.failures) {
|
199
199
|
return '( x .x)';
|
@@ -212,7 +212,7 @@ NyanCat.prototype.face = function() {
|
|
212
212
|
* @param {number} n
|
213
213
|
*/
|
214
214
|
|
215
|
-
NyanCat.prototype.cursorUp = function(n) {
|
215
|
+
NyanCat.prototype.cursorUp = function (n) {
|
216
216
|
write('\u001b[' + n + 'A');
|
217
217
|
};
|
218
218
|
|
@@ -223,7 +223,7 @@ NyanCat.prototype.cursorUp = function(n) {
|
|
223
223
|
* @param {number} n
|
224
224
|
*/
|
225
225
|
|
226
|
-
NyanCat.prototype.cursorDown = function(n) {
|
226
|
+
NyanCat.prototype.cursorDown = function (n) {
|
227
227
|
write('\u001b[' + n + 'B');
|
228
228
|
};
|
229
229
|
|
@@ -233,7 +233,7 @@ NyanCat.prototype.cursorDown = function(n) {
|
|
233
233
|
* @private
|
234
234
|
* @return {Array}
|
235
235
|
*/
|
236
|
-
NyanCat.prototype.generateColors = function() {
|
236
|
+
NyanCat.prototype.generateColors = function () {
|
237
237
|
var colors = [];
|
238
238
|
|
239
239
|
for (var i = 0; i < 6 * 7; i++) {
|
@@ -255,7 +255,7 @@ NyanCat.prototype.generateColors = function() {
|
|
255
255
|
* @param {string} str
|
256
256
|
* @return {string}
|
257
257
|
*/
|
258
|
-
NyanCat.prototype.rainbowify = function(str) {
|
258
|
+
NyanCat.prototype.rainbowify = function (str) {
|
259
259
|
if (!Base.useColors) {
|
260
260
|
return str;
|
261
261
|
}
|
@@ -57,13 +57,13 @@ function Progress(runner, options) {
|
|
57
57
|
options.verbose = reporterOptions.verbose || false;
|
58
58
|
|
59
59
|
// tests started
|
60
|
-
runner.on(EVENT_RUN_BEGIN, function() {
|
60
|
+
runner.on(EVENT_RUN_BEGIN, function () {
|
61
61
|
process.stdout.write('\n');
|
62
62
|
cursor.hide();
|
63
63
|
});
|
64
64
|
|
65
65
|
// tests complete
|
66
|
-
runner.on(EVENT_TEST_END, function() {
|
66
|
+
runner.on(EVENT_TEST_END, function () {
|
67
67
|
complete++;
|
68
68
|
|
69
69
|
var percent = complete / total;
|
@@ -89,7 +89,7 @@ function Progress(runner, options) {
|
|
89
89
|
|
90
90
|
// tests are complete, output some stats
|
91
91
|
// and the failures if any
|
92
|
-
runner.once(EVENT_RUN_END, function() {
|
92
|
+
runner.once(EVENT_RUN_END, function () {
|
93
93
|
cursor.show();
|
94
94
|
process.stdout.write('\n');
|
95
95
|
self.epilogue();
|
@@ -45,28 +45,28 @@ function Spec(runner, options) {
|
|
45
45
|
return Array(indents).join(' ');
|
46
46
|
}
|
47
47
|
|
48
|
-
runner.on(EVENT_RUN_BEGIN, function() {
|
48
|
+
runner.on(EVENT_RUN_BEGIN, function () {
|
49
49
|
Base.consoleLog();
|
50
50
|
});
|
51
51
|
|
52
|
-
runner.on(EVENT_SUITE_BEGIN, function(suite) {
|
52
|
+
runner.on(EVENT_SUITE_BEGIN, function (suite) {
|
53
53
|
++indents;
|
54
54
|
Base.consoleLog(color('suite', '%s%s'), indent(), suite.title);
|
55
55
|
});
|
56
56
|
|
57
|
-
runner.on(EVENT_SUITE_END, function() {
|
57
|
+
runner.on(EVENT_SUITE_END, function () {
|
58
58
|
--indents;
|
59
59
|
if (indents === 1) {
|
60
60
|
Base.consoleLog();
|
61
61
|
}
|
62
62
|
});
|
63
63
|
|
64
|
-
runner.on(EVENT_TEST_PENDING, function(test) {
|
64
|
+
runner.on(EVENT_TEST_PENDING, function (test) {
|
65
65
|
var fmt = indent() + color('pending', ' - %s');
|
66
66
|
Base.consoleLog(fmt, test.title);
|
67
67
|
});
|
68
68
|
|
69
|
-
runner.on(EVENT_TEST_PASS, function(test) {
|
69
|
+
runner.on(EVENT_TEST_PASS, function (test) {
|
70
70
|
var fmt;
|
71
71
|
if (test.speed === 'fast') {
|
72
72
|
fmt =
|
@@ -84,7 +84,7 @@ function Spec(runner, options) {
|
|
84
84
|
}
|
85
85
|
});
|
86
86
|
|
87
|
-
runner.on(EVENT_TEST_FAIL, function(test) {
|
87
|
+
runner.on(EVENT_TEST_FAIL, function (test) {
|
88
88
|
Base.consoleLog(indent() + color('fail', ' %d) %s'), ++n, test.title);
|
89
89
|
});
|
90
90
|
|
@@ -49,27 +49,27 @@ function TAP(runner, options) {
|
|
49
49
|
|
50
50
|
this._producer = createProducer(tapVersion);
|
51
51
|
|
52
|
-
runner.once(EVENT_RUN_BEGIN, function() {
|
52
|
+
runner.once(EVENT_RUN_BEGIN, function () {
|
53
53
|
self._producer.writeVersion();
|
54
54
|
});
|
55
55
|
|
56
|
-
runner.on(EVENT_TEST_END, function() {
|
56
|
+
runner.on(EVENT_TEST_END, function () {
|
57
57
|
++n;
|
58
58
|
});
|
59
59
|
|
60
|
-
runner.on(EVENT_TEST_PENDING, function(test) {
|
60
|
+
runner.on(EVENT_TEST_PENDING, function (test) {
|
61
61
|
self._producer.writePending(n, test);
|
62
62
|
});
|
63
63
|
|
64
|
-
runner.on(EVENT_TEST_PASS, function(test) {
|
64
|
+
runner.on(EVENT_TEST_PASS, function (test) {
|
65
65
|
self._producer.writePass(n, test);
|
66
66
|
});
|
67
67
|
|
68
|
-
runner.on(EVENT_TEST_FAIL, function(test, err) {
|
68
|
+
runner.on(EVENT_TEST_FAIL, function (test, err) {
|
69
69
|
self._producer.writeFail(n, test, err);
|
70
70
|
});
|
71
71
|
|
72
|
-
runner.once(EVENT_RUN_END, function() {
|
72
|
+
runner.once(EVENT_RUN_END, function () {
|
73
73
|
self._producer.writeEpilogue(runner.stats);
|
74
74
|
});
|
75
75
|
}
|
@@ -113,8 +113,8 @@ function println(format, varArgs) {
|
|
113
113
|
*/
|
114
114
|
function createProducer(tapVersion) {
|
115
115
|
var producers = {
|
116
|
-
|
117
|
-
|
116
|
+
12: new TAP12Producer(),
|
117
|
+
13: new TAP13Producer()
|
118
118
|
};
|
119
119
|
var producer = producers[tapVersion];
|
120
120
|
|
@@ -144,7 +144,7 @@ function TAPProducer() {}
|
|
144
144
|
*
|
145
145
|
* @abstract
|
146
146
|
*/
|
147
|
-
TAPProducer.prototype.writeVersion = function() {};
|
147
|
+
TAPProducer.prototype.writeVersion = function () {};
|
148
148
|
|
149
149
|
/**
|
150
150
|
* Writes the plan to reporter output stream.
|
@@ -152,7 +152,7 @@ TAPProducer.prototype.writeVersion = function() {};
|
|
152
152
|
* @abstract
|
153
153
|
* @param {number} ntests - Number of tests that are planned to run.
|
154
154
|
*/
|
155
|
-
TAPProducer.prototype.writePlan = function(ntests) {
|
155
|
+
TAPProducer.prototype.writePlan = function (ntests) {
|
156
156
|
println('%d..%d', 1, ntests);
|
157
157
|
};
|
158
158
|
|
@@ -163,7 +163,7 @@ TAPProducer.prototype.writePlan = function(ntests) {
|
|
163
163
|
* @param {number} n - Index of test that passed.
|
164
164
|
* @param {Test} test - Instance containing test information.
|
165
165
|
*/
|
166
|
-
TAPProducer.prototype.writePass = function(n, test) {
|
166
|
+
TAPProducer.prototype.writePass = function (n, test) {
|
167
167
|
println('ok %d %s', n, title(test));
|
168
168
|
};
|
169
169
|
|
@@ -174,7 +174,7 @@ TAPProducer.prototype.writePass = function(n, test) {
|
|
174
174
|
* @param {number} n - Index of test that was skipped.
|
175
175
|
* @param {Test} test - Instance containing test information.
|
176
176
|
*/
|
177
|
-
TAPProducer.prototype.writePending = function(n, test) {
|
177
|
+
TAPProducer.prototype.writePending = function (n, test) {
|
178
178
|
println('ok %d %s # SKIP -', n, title(test));
|
179
179
|
};
|
180
180
|
|
@@ -186,7 +186,7 @@ TAPProducer.prototype.writePending = function(n, test) {
|
|
186
186
|
* @param {Test} test - Instance containing test information.
|
187
187
|
* @param {Error} err - Reason the test failed.
|
188
188
|
*/
|
189
|
-
TAPProducer.prototype.writeFail = function(n, test, err) {
|
189
|
+
TAPProducer.prototype.writeFail = function (n, test, err) {
|
190
190
|
println('not ok %d %s', n, title(test));
|
191
191
|
};
|
192
192
|
|
@@ -196,7 +196,7 @@ TAPProducer.prototype.writeFail = function(n, test, err) {
|
|
196
196
|
* @abstract
|
197
197
|
* @param {Object} stats - Object containing run statistics.
|
198
198
|
*/
|
199
|
-
TAPProducer.prototype.writeEpilogue = function(stats) {
|
199
|
+
TAPProducer.prototype.writeEpilogue = function (stats) {
|
200
200
|
// :TBD: Why is this not counting pending tests?
|
201
201
|
println('# tests ' + (stats.passes + stats.failures));
|
202
202
|
println('# pass ' + stats.passes);
|
@@ -222,7 +222,7 @@ function TAP12Producer() {
|
|
222
222
|
* Writes that test failed to reporter output stream, with error formatting.
|
223
223
|
* @override
|
224
224
|
*/
|
225
|
-
this.writeFail = function(n, test, err) {
|
225
|
+
this.writeFail = function (n, test, err) {
|
226
226
|
TAPProducer.prototype.writeFail.call(this, n, test, err);
|
227
227
|
if (err.message) {
|
228
228
|
println(err.message.replace(/^/gm, ' '));
|
@@ -255,7 +255,7 @@ function TAP13Producer() {
|
|
255
255
|
* Writes the TAP version to reporter output stream.
|
256
256
|
* @override
|
257
257
|
*/
|
258
|
-
this.writeVersion = function() {
|
258
|
+
this.writeVersion = function () {
|
259
259
|
println('TAP version 13');
|
260
260
|
};
|
261
261
|
|
@@ -263,7 +263,7 @@ function TAP13Producer() {
|
|
263
263
|
* Writes that test failed to reporter output stream, with error formatting.
|
264
264
|
* @override
|
265
265
|
*/
|
266
|
-
this.writeFail = function(n, test, err) {
|
266
|
+
this.writeFail = function (n, test, err) {
|
267
267
|
TAPProducer.prototype.writeFail.call(this, n, test, err);
|
268
268
|
var emitYamlBlock = err.message != null || err.stack != null;
|
269
269
|
if (emitYamlBlock) {
|
@@ -74,19 +74,19 @@ function XUnit(runner, options) {
|
|
74
74
|
// fall back to the default suite name
|
75
75
|
suiteName = suiteName || DEFAULT_SUITE_NAME;
|
76
76
|
|
77
|
-
runner.on(EVENT_TEST_PENDING, function(test) {
|
77
|
+
runner.on(EVENT_TEST_PENDING, function (test) {
|
78
78
|
tests.push(test);
|
79
79
|
});
|
80
80
|
|
81
|
-
runner.on(EVENT_TEST_PASS, function(test) {
|
81
|
+
runner.on(EVENT_TEST_PASS, function (test) {
|
82
82
|
tests.push(test);
|
83
83
|
});
|
84
84
|
|
85
|
-
runner.on(EVENT_TEST_FAIL, function(test) {
|
85
|
+
runner.on(EVENT_TEST_FAIL, function (test) {
|
86
86
|
tests.push(test);
|
87
87
|
});
|
88
88
|
|
89
|
-
runner.once(EVENT_RUN_END, function() {
|
89
|
+
runner.once(EVENT_RUN_END, function () {
|
90
90
|
self.write(
|
91
91
|
tag(
|
92
92
|
'testsuite',
|
@@ -103,7 +103,7 @@ function XUnit(runner, options) {
|
|
103
103
|
)
|
104
104
|
);
|
105
105
|
|
106
|
-
tests.forEach(function(t) {
|
106
|
+
tests.forEach(function (t) {
|
107
107
|
self.test(t);
|
108
108
|
});
|
109
109
|
|
@@ -122,9 +122,9 @@ inherits(XUnit, Base);
|
|
122
122
|
* @param failures
|
123
123
|
* @param {Function} fn
|
124
124
|
*/
|
125
|
-
XUnit.prototype.done = function(failures, fn) {
|
125
|
+
XUnit.prototype.done = function (failures, fn) {
|
126
126
|
if (this.fileStream) {
|
127
|
-
this.fileStream.end(function() {
|
127
|
+
this.fileStream.end(function () {
|
128
128
|
fn(failures);
|
129
129
|
});
|
130
130
|
} else {
|
@@ -137,7 +137,7 @@ XUnit.prototype.done = function(failures, fn) {
|
|
137
137
|
*
|
138
138
|
* @param {string} line
|
139
139
|
*/
|
140
|
-
XUnit.prototype.write = function(line) {
|
140
|
+
XUnit.prototype.write = function (line) {
|
141
141
|
if (this.fileStream) {
|
142
142
|
this.fileStream.write(line + '\n');
|
143
143
|
} else if (typeof process === 'object' && process.stdout) {
|
@@ -152,7 +152,7 @@ XUnit.prototype.write = function(line) {
|
|
152
152
|
*
|
153
153
|
* @param {Test} test
|
154
154
|
*/
|
155
|
-
XUnit.prototype.test = function(test) {
|
155
|
+
XUnit.prototype.test = function (test) {
|
156
156
|
Base.useColors = false;
|
157
157
|
|
158
158
|
var attrs = {
|
@@ -57,7 +57,7 @@ utils.inherits(Runnable, EventEmitter);
|
|
57
57
|
/**
|
58
58
|
* Resets the state initially or for a next run.
|
59
59
|
*/
|
60
|
-
Runnable.prototype.reset = function() {
|
60
|
+
Runnable.prototype.reset = function () {
|
61
61
|
this.timedOut = false;
|
62
62
|
this._currentRetry = 0;
|
63
63
|
this.pending = false;
|
@@ -86,7 +86,7 @@ Runnable.prototype.reset = function() {
|
|
86
86
|
* @returns {Runnable} this
|
87
87
|
* @chainable
|
88
88
|
*/
|
89
|
-
Runnable.prototype.timeout = function(ms) {
|
89
|
+
Runnable.prototype.timeout = function (ms) {
|
90
90
|
if (!arguments.length) {
|
91
91
|
return this._timeout;
|
92
92
|
}
|
@@ -120,7 +120,7 @@ Runnable.prototype.timeout = function(ms) {
|
|
120
120
|
* @param {number|string} ms
|
121
121
|
* @return {Runnable|number} ms or Runnable instance.
|
122
122
|
*/
|
123
|
-
Runnable.prototype.slow = function(ms) {
|
123
|
+
Runnable.prototype.slow = function (ms) {
|
124
124
|
if (!arguments.length || typeof ms === 'undefined') {
|
125
125
|
return this._slow;
|
126
126
|
}
|
@@ -138,7 +138,7 @@ Runnable.prototype.slow = function(ms) {
|
|
138
138
|
* @memberof Mocha.Runnable
|
139
139
|
* @public
|
140
140
|
*/
|
141
|
-
Runnable.prototype.skip = function() {
|
141
|
+
Runnable.prototype.skip = function () {
|
142
142
|
this.pending = true;
|
143
143
|
throw new Pending('sync skip; aborting execution');
|
144
144
|
};
|
@@ -148,7 +148,7 @@ Runnable.prototype.skip = function() {
|
|
148
148
|
*
|
149
149
|
* @private
|
150
150
|
*/
|
151
|
-
Runnable.prototype.isPending = function() {
|
151
|
+
Runnable.prototype.isPending = function () {
|
152
152
|
return this.pending || (this.parent && this.parent.isPending());
|
153
153
|
};
|
154
154
|
|
@@ -157,7 +157,7 @@ Runnable.prototype.isPending = function() {
|
|
157
157
|
* @return {boolean}
|
158
158
|
* @private
|
159
159
|
*/
|
160
|
-
Runnable.prototype.isFailed = function() {
|
160
|
+
Runnable.prototype.isFailed = function () {
|
161
161
|
return !this.isPending() && this.state === constants.STATE_FAILED;
|
162
162
|
};
|
163
163
|
|
@@ -166,7 +166,7 @@ Runnable.prototype.isFailed = function() {
|
|
166
166
|
* @return {boolean}
|
167
167
|
* @private
|
168
168
|
*/
|
169
|
-
Runnable.prototype.isPassed = function() {
|
169
|
+
Runnable.prototype.isPassed = function () {
|
170
170
|
return !this.isPending() && this.state === constants.STATE_PASSED;
|
171
171
|
};
|
172
172
|
|
@@ -175,7 +175,7 @@ Runnable.prototype.isPassed = function() {
|
|
175
175
|
*
|
176
176
|
* @private
|
177
177
|
*/
|
178
|
-
Runnable.prototype.retries = function(n) {
|
178
|
+
Runnable.prototype.retries = function (n) {
|
179
179
|
if (!arguments.length) {
|
180
180
|
return this._retries;
|
181
181
|
}
|
@@ -187,7 +187,7 @@ Runnable.prototype.retries = function(n) {
|
|
187
187
|
*
|
188
188
|
* @private
|
189
189
|
*/
|
190
|
-
Runnable.prototype.currentRetry = function(n) {
|
190
|
+
Runnable.prototype.currentRetry = function (n) {
|
191
191
|
if (!arguments.length) {
|
192
192
|
return this._currentRetry;
|
193
193
|
}
|
@@ -202,7 +202,7 @@ Runnable.prototype.currentRetry = function(n) {
|
|
202
202
|
* @public
|
203
203
|
* @return {string}
|
204
204
|
*/
|
205
|
-
Runnable.prototype.fullTitle = function() {
|
205
|
+
Runnable.prototype.fullTitle = function () {
|
206
206
|
return this.titlePath().join(' ');
|
207
207
|
};
|
208
208
|
|
@@ -213,7 +213,7 @@ Runnable.prototype.fullTitle = function() {
|
|
213
213
|
* @public
|
214
214
|
* @return {string}
|
215
215
|
*/
|
216
|
-
Runnable.prototype.titlePath = function() {
|
216
|
+
Runnable.prototype.titlePath = function () {
|
217
217
|
return this.parent.titlePath().concat([this.title]);
|
218
218
|
};
|
219
219
|
|
@@ -222,7 +222,7 @@ Runnable.prototype.titlePath = function() {
|
|
222
222
|
*
|
223
223
|
* @private
|
224
224
|
*/
|
225
|
-
Runnable.prototype.clearTimeout = function() {
|
225
|
+
Runnable.prototype.clearTimeout = function () {
|
226
226
|
clearTimeout(this.timer);
|
227
227
|
};
|
228
228
|
|
@@ -231,7 +231,7 @@ Runnable.prototype.clearTimeout = function() {
|
|
231
231
|
*
|
232
232
|
* @private
|
233
233
|
*/
|
234
|
-
Runnable.prototype.resetTimeout = function() {
|
234
|
+
Runnable.prototype.resetTimeout = function () {
|
235
235
|
var self = this;
|
236
236
|
var ms = this.timeout();
|
237
237
|
|
@@ -239,7 +239,7 @@ Runnable.prototype.resetTimeout = function() {
|
|
239
239
|
return;
|
240
240
|
}
|
241
241
|
this.clearTimeout();
|
242
|
-
this.timer = setTimeout(function() {
|
242
|
+
this.timer = setTimeout(function () {
|
243
243
|
if (self.timeout() === 0) {
|
244
244
|
return;
|
245
245
|
}
|
@@ -254,7 +254,7 @@ Runnable.prototype.resetTimeout = function() {
|
|
254
254
|
* @private
|
255
255
|
* @param {string[]} globals
|
256
256
|
*/
|
257
|
-
Runnable.prototype.globals = function(globals) {
|
257
|
+
Runnable.prototype.globals = function (globals) {
|
258
258
|
if (!arguments.length) {
|
259
259
|
return this._allowedGlobals;
|
260
260
|
}
|
@@ -267,7 +267,7 @@ Runnable.prototype.globals = function(globals) {
|
|
267
267
|
* @param {Function} fn
|
268
268
|
* @private
|
269
269
|
*/
|
270
|
-
Runnable.prototype.run = function(fn) {
|
270
|
+
Runnable.prototype.run = function (fn) {
|
271
271
|
var self = this;
|
272
272
|
var start = new Date();
|
273
273
|
var ctx = this.ctx;
|
@@ -367,13 +367,13 @@ Runnable.prototype.run = function(fn) {
|
|
367
367
|
if (result && typeof result.then === 'function') {
|
368
368
|
self.resetTimeout();
|
369
369
|
result.then(
|
370
|
-
function() {
|
370
|
+
function () {
|
371
371
|
done();
|
372
372
|
// Return null so libraries like bluebird do not warn about
|
373
373
|
// subsequently constructed Promises.
|
374
374
|
return null;
|
375
375
|
},
|
376
|
-
function(reason) {
|
376
|
+
function (reason) {
|
377
377
|
done(reason || new Error('Promise rejected with no or falsy reason'));
|
378
378
|
}
|
379
379
|
);
|
@@ -391,7 +391,7 @@ Runnable.prototype.run = function(fn) {
|
|
391
391
|
}
|
392
392
|
|
393
393
|
function callFnAsync(fn) {
|
394
|
-
var result = fn.call(ctx, function(err) {
|
394
|
+
var result = fn.call(ctx, function (err) {
|
395
395
|
if (err instanceof Error || toString.call(err) === '[object Error]') {
|
396
396
|
return done(err);
|
397
397
|
}
|
@@ -423,7 +423,7 @@ Runnable.prototype.run = function(fn) {
|
|
423
423
|
* @returns {Error} a "timeout" error
|
424
424
|
* @private
|
425
425
|
*/
|
426
|
-
Runnable.prototype._timeoutError = function(ms) {
|
426
|
+
Runnable.prototype._timeoutError = function (ms) {
|
427
427
|
let msg = `Timeout of ${ms}ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.`;
|
428
428
|
if (this.file) {
|
429
429
|
msg += ' (' + this.file + ')';
|
@@ -463,7 +463,7 @@ var constants = utils.defineConstants(
|
|
463
463
|
* @returns {*|Error} `value`, otherwise an `Error`
|
464
464
|
* @private
|
465
465
|
*/
|
466
|
-
Runnable.toValueOrError = function(value) {
|
466
|
+
Runnable.toValueOrError = function (value) {
|
467
467
|
return (
|
468
468
|
value ||
|
469
469
|
createInvalidExceptionError(
|