Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 10ddb1d55d60:bower amanagar$ npm install
- is-root@1.0.0 node_modules/is-root
- junk@1.0.1 node_modules/junk
- stringify-object@1.0.1 node_modules/stringify-object
- user-home@1.1.1 node_modules/user-home
- abbrev@1.0.5 node_modules/abbrev
- which@1.0.9 node_modules/which
- chmodr@0.1.0 node_modules/chmodr
- rimraf@2.3.2 node_modules/rimraf
- grunt-simple-mocha@0.4.0 node_modules/grunt-simple-mocha
- archy@1.0.0 node_modules/archy
- grunt-exec@0.4.6 node_modules/grunt-exec
- opn@1.0.1 node_modules/opn
- lru-cache@2.5.0 node_modules/lru-cache
- bower-logger@0.2.2 node_modules/bower-logger
- bower-endpoint-parser@0.2.2 node_modules/bower-endpoint-parser
- graceful-fs@3.0.6 node_modules/graceful-fs
- lockfile@1.0.0 node_modules/lockfile
- expect.js@0.3.1 node_modules/expect.js
- nopt@3.0.1 node_modules/nopt
- retry@0.6.1 node_modules/retry
- tmp@0.0.24 node_modules/tmp
- node-uuid@1.4.3 node_modules/node-uuid
- q@1.2.0 node_modules/q
- request-progress@0.3.1 node_modules/request-progress
- └── throttleit@0.0.2
- multiline@1.0.2 node_modules/multiline
- └── strip-indent@1.0.1 (get-stdin@4.0.1)
- shell-quote@1.4.3 node_modules/shell-quote
- ├── array-filter@0.0.1
- ├── array-reduce@0.0.0
- ├── array-map@0.0.0
- └── jsonify@0.0.0
- chalk@1.0.0 node_modules/chalk
- ├── escape-string-regexp@1.0.3
- ├── ansi-styles@2.0.1
- ├── supports-color@1.3.1
- ├── strip-ansi@2.0.1 (ansi-regex@1.1.1)
- └── has-ansi@1.0.3 (get-stdin@4.0.1, ansi-regex@1.1.1)
- bower-json@0.4.0 node_modules/bower-json
- ├── intersect@0.0.3
- ├── deep-extend@0.2.11
- └── graceful-fs@2.0.3
- semver@2.3.2 node_modules/semver
- fstream@1.0.4 node_modules/fstream
- └── inherits@2.0.1
- p-throttler@0.1.1 node_modules/p-throttler
- └── q@0.9.7
- promptly@0.2.0 node_modules/promptly
- └── read@1.0.5 (mute-stream@0.0.4)
- mkdirp@0.5.0 node_modules/mkdirp
- └── minimist@0.0.8
- proxyquire@1.4.0 node_modules/proxyquire
- tar-fs@1.5.0 node_modules/tar-fs
- ├── pump@1.0.0 (end-of-stream@1.1.0, once@1.3.1)
- └── tar-stream@1.1.2 (xtend@4.0.0, bl@0.9.4, end-of-stream@1.1.0, readable-stream@1.0.33)
- glob@4.5.3 node_modules/glob
- ├── inherits@2.0.1
- ├── inflight@1.0.4 (wrappy@1.0.1)
- ├── once@1.3.1 (wrappy@1.0.1)
- └── minimatch@2.0.4 (brace-expansion@1.1.0)
- fstream-ignore@1.0.2 node_modules/fstream-ignore
- ├── inherits@2.0.1
- └── minimatch@2.0.4 (brace-expansion@1.1.0)
- load-grunt-tasks@2.0.0 node_modules/load-grunt-tasks
- ├── multimatch@2.0.0 (array-differ@1.0.0, array-union@1.0.1, minimatch@2.0.4)
- └── findup-sync@0.2.1 (glob@4.3.5)
- decompress-zip@0.1.0 node_modules/decompress-zip
- ├── mkpath@0.1.0
- ├── touch@0.0.3 (nopt@1.0.10)
- ├── readable-stream@1.1.13 (isarray@0.0.1, inherits@2.0.1, string_decoder@0.10.31, core-util-is@1.0.1)
- └── binary@0.3.0 (buffers@0.1.1, chainsaw@0.1.0)
- chai@1.10.0 node_modules/chai
- ├── assertion-error@1.0.0
- └── deep-eql@0.1.3 (type-detect@0.1.1)
- request@2.54.0 node_modules/request
- ├── caseless@0.9.0
- ├── json-stringify-safe@5.0.0
- ├── aws-sign2@0.5.0
- ├── forever-agent@0.6.0
- ├── stringstream@0.0.4
- ├── oauth-sign@0.6.0
- ├── tunnel-agent@0.4.0
- ├── isstream@0.1.2
- ├── qs@2.4.1
- ├── combined-stream@0.0.7 (delayed-stream@0.0.5)
- ├── form-data@0.2.0 (async@0.9.0)
- ├── mime-types@2.0.10 (mime-db@1.8.0)
- ├── bl@0.9.4 (readable-stream@1.0.33)
- ├── http-signature@0.10.1 (assert-plus@0.1.5, asn1@0.1.11, ctype@0.5.3)
- ├── tough-cookie@0.12.1 (punycode@1.3.2)
- ├── hawk@2.3.1 (cryptiles@2.0.4, sntp@1.0.9, boom@2.6.1, hoek@2.12.0)
- └── har-validator@1.4.0 (require-directory@2.1.0, async@0.9.0, commander@2.7.1, debug@2.1.3, is-my-json-valid@2.10.0, bluebird@2.9.16)
- bower-registry-client@0.2.4 node_modules/bower-registry-client
- ├── graceful-fs@2.0.3
- ├── request-replay@0.2.0
- ├── rimraf@2.2.8
- ├── lru-cache@2.3.1
- ├── async@0.2.10
- ├── mkdirp@0.3.5
- └── request@2.51.0 (caseless@0.8.0, json-stringify-safe@5.0.0, forever-agent@0.5.2, aws-sign2@0.5.0, stringstream@0.0.4, tunnel-agent@0.4.0, oauth-sign@0.5.0, qs@2.3.3, mime-types@1.0.2, combined-stream@0.0.7, bl@0.9.4, http-signature@0.10.1, form-data@0.2.0, tough-cookie@0.12.1, hawk@1.1.1)
- grunt-contrib-watch@0.6.1 node_modules/grunt-contrib-watch
- ├── async@0.2.10
- ├── tiny-lr-fork@0.0.5 (debug@0.7.4, noptify@0.0.3, faye-websocket@0.4.4, qs@0.5.6)
- ├── gaze@0.5.1 (globule@0.1.0)
- └── lodash@2.4.1
- mocha@2.2.1 node_modules/mocha
- ├── escape-string-regexp@1.0.2
- ├── supports-color@1.2.1
- ├── diff@1.0.8
- ├── growl@1.8.1
- ├── commander@2.3.0
- ├── debug@2.0.0 (ms@0.6.2)
- ├── glob@3.2.3 (inherits@2.0.1, graceful-fs@2.0.3, minimatch@0.2.14)
- └── jade@0.26.3 (commander@0.6.1, mkdirp@0.3.0)
- grunt-cli@0.1.13 node_modules/grunt-cli
- ├── nopt@1.0.10
- ├── resolve@0.3.1
- └── findup-sync@0.1.3 (glob@3.2.11, lodash@2.4.1)
- cardinal@0.4.4 node_modules/cardinal
- ├── ansicolors@0.2.1
- └── redeyed@0.4.4 (esprima@1.0.4)
- grunt@0.4.5 node_modules/grunt
- ├── dateformat@1.0.2-1.2.3
- ├── eventemitter2@0.4.14
- ├── getobject@0.1.0
- ├── rimraf@2.2.8
- ├── colors@0.6.2
- ├── nopt@1.0.10
- ├── async@0.1.22
- ├── grunt-legacy-util@0.2.0
- ├── hooker@0.2.3
- ├── exit@0.1.2
- ├── minimatch@0.2.14 (sigmund@1.0.0)
- ├── glob@3.1.21 (inherits@1.0.0, graceful-fs@1.2.3)
- ├── lodash@0.9.2
- ├── coffee-script@1.3.3
- ├── underscore.string@2.2.1
- ├── iconv-lite@0.2.11
- ├── findup-sync@0.1.3 (glob@3.2.11, lodash@2.4.1)
- ├── grunt-legacy-log@0.1.1 (underscore.string@2.3.3, lodash@2.4.1)
- └── js-yaml@2.0.5 (argparse@0.1.16, esprima@1.0.4)
- coveralls@2.11.2 node_modules/coveralls
- ├── lcov-parse@0.0.6
- ├── log-driver@1.2.4
- ├── request@2.40.0 (json-stringify-safe@5.0.0, forever-agent@0.5.2, aws-sign2@0.5.0, oauth-sign@0.3.0, stringstream@0.0.4, tunnel-agent@0.4.0, qs@1.0.2, mime-types@1.0.2, form-data@0.1.4, http-signature@0.10.1, tough-cookie@0.12.1, hawk@1.1.1)
- └── js-yaml@3.0.1 (argparse@0.1.16, esprima@1.0.4)
- nock@0.56.0 node_modules/nock
- ├── propagate@0.3.1
- ├── debug@1.0.4 (ms@0.6.2)
- └── lodash@2.4.1
- mout@0.11.0 node_modules/mout
- bower-config@0.5.2 node_modules/bower-config
- ├── osenv@0.0.3
- ├── graceful-fs@2.0.3
- ├── optimist@0.6.1 (wordwrap@0.0.2, minimist@0.0.10)
- └── mout@0.9.1
- update-notifier@0.3.1 node_modules/update-notifier
- ├── is-npm@1.0.0
- ├── string-length@1.0.0 (strip-ansi@2.0.1)
- ├── semver-diff@2.0.0 (semver@4.3.3)
- ├── latest-version@1.0.0 (package-json@1.1.0)
- └── configstore@0.3.2 (object-assign@2.0.0, xdg-basedir@1.0.1, osenv@0.1.0, uuid@2.0.1, js-yaml@3.2.7)
- insight@0.5.3 node_modules/insight
- ├── object-assign@2.0.0
- ├── lodash.debounce@3.0.3 (lodash.isnative@3.0.1)
- ├── async@0.9.0
- ├── os-name@1.0.3 (win-release@1.0.0, osx-release@1.0.0)
- ├── tough-cookie@0.12.1 (punycode@1.3.2)
- └── configstore@0.3.2 (xdg-basedir@1.0.1, osenv@0.1.0, uuid@2.0.1, js-yaml@3.2.7)
- grunt-contrib-jshint@0.10.0 node_modules/grunt-contrib-jshint
- ├── hooker@0.2.3
- └── jshint@2.5.11 (strip-json-comments@1.0.2, underscore@1.6.0, exit@0.1.2, shelljs@0.3.0, minimatch@1.0.0, console-browserify@1.1.0, cli@0.6.6, htmlparser2@3.8.2)
- istanbul@0.3.11 node_modules/istanbul
- ├── supports-color@1.3.1
- ├── wordwrap@0.0.2
- ├── once@1.3.1 (wrappy@1.0.1)
- ├── async@0.9.0
- ├── esprima@2.1.0
- ├── resolve@1.1.6
- ├── fileset@0.1.5 (minimatch@0.4.0, glob@3.2.11)
- ├── escodegen@1.6.1 (esutils@1.1.6, estraverse@1.9.3, optionator@0.5.0, source-map@0.1.43, esprima@1.2.5)
- ├── handlebars@3.0.0 (optimist@0.6.1, source-map@0.1.43, uglify-js@2.3.6)
- └── js-yaml@3.2.7 (esprima@2.0.0, argparse@1.0.2)
- handlebars@2.0.0 node_modules/handlebars
- ├── optimist@0.3.7 (wordwrap@0.0.2)
- └── uglify-js@2.3.6 (async@0.2.10, source-map@0.1.43)
- inquirer@0.8.0 node_modules/inquirer
- ├── figures@1.3.5
- ├── ansi-regex@1.1.1
- ├── mute-stream@0.0.4
- ├── through@2.3.6
- ├── readline2@0.1.1 (strip-ansi@2.0.1)
- ├── chalk@0.5.1 (ansi-styles@1.1.0, escape-string-regexp@1.0.3, supports-color@0.2.0, has-ansi@0.1.0, strip-ansi@0.3.0)
- ├── lodash@2.4.1
- ├── rx@2.4.7
- └── cli-color@0.3.3 (d@0.1.1, timers-ext@0.1.0, memoizee@0.3.8, es5-ext@0.10.6)
- 10ddb1d55d60:bower amanagar$ grunt
- Running "jshint:files" (jshint) task
- >> 94 files lint free.
- Running "exec:assets" (exec) task
- > Package package-a#0.0.1 successfully created
- > Package package-a#0.0.2 successfully created
- > Package package-a#0.1.0 successfully created
- > Package package-a#0.1.1 successfully created
- > Package package-a#0.2.0 successfully created
- > Package package-a#0.2.1 successfully created
- > Package package-a#0.2.2 successfully created
- > Package package-a#some-branch successfully created
- > Package package-svn#0.0.1 successfully created
- > Package package-svn#0.0.2 successfully created
- > Package package-svn#0.1.0 successfully created
- > Package package-svn#0.1.1 successfully created
- > Package package-svn#0.2.0 successfully created
- > Package package-svn#0.2.1 successfully created
- > Package package-svn#0.2.2 successfully created
- Running "simplemocha:full" (simplemocha) task
- Resolver
- .getSource
- ✓ should return the resolver source
- .getName
- ✓ should return the resolver name
- ✓ should return the resolver source if none is specified (default guess mechanism)
- .getTarget
- ✓ should return the resolver target
- ✓ should return * if none was configured
- ✓ should return * if latest was configured (for backwards compatibility)
- .hasNew
- ✓ should throw an error if already working (resolving) (236ms)
- ✓ should throw an error if already working (checking for newer version) (45ms)
- ✓ should resolve to true by default (45ms)
- ✓ should resolve to true if the there's an error reading the package meta
- ✓ should call _hasNew with the canonical dir and the package meta
- ✓ should not read the package meta if already passed
- .resolve
- ✓ should reject the promise if _resolve is not implemented
- ✓ should throw an error if already working (resolving)
- ✓ should throw an error if already working (checking newer version)
- ✓ should call all the functions necessary to resolve by the correct order
- ✓ should resolve with the canonical dir (folder)
- .getTempDir
- ✓ should return null if resolver is not yet resolved
- ✓ should still return null if resolve failed
- ✓ should return the canonical dir (folder) if resolve succeeded
- .getPkgMeta
- ✓ should return null if resolver is not yet resolved
- ✓ should still return null if resolve failed
- ✓ should return the package meta if resolve succeeded (40ms)
- ._createTempDir
- ✓ should create a directory inside a "username/bower" folder, located within the OS temp folder
- ✓ should set the dir mode the same as the process
- ✓ should remove the folder after execution (1740ms)
- ✓ should remove the folder on an uncaught exception (547ms)
- ✓ should set _tempDir with the created directory
- ._cleanTempDir
- ✓ should not error out if temporary dir is not yet created
- ✓ should delete the temporary folder contents
- ✓ should keep the mode
- ✓ should keep the dir path
- ._readJson
- ✓ should read the bower.json file
- ✓ should fallback to component.json (notifying a warn)
- ✓ should resolve to an inferred json if no json file was found
- - should apply normalisation, defaults and validation to the json object
- ._applyPkgMeta
- ✓ should resolve with the same package meta
- ✓ should remove files that match the ignore patterns excluding main files (669ms)
- handling of ignore property according to the .gitignore spec
- - A blank line matches no files, so it can serve as a separator for readability.
- - A line starting with # serves as a comment.
- - An optional prefix ! which negates the pattern; any matching file excluded by a previous pattern will become included again...
- - If the pattern ends with a slash, it is removed for the purpose of the following description, but it would only find a match with a directory...
- - If the pattern does not contain a slash /, git treats it as a shell glob pattern and checks for a match against the pathname without leading directories.
- - Otherwise, git treats the pattern as a shell glob suitable for consumption by fnmatch(3) with the FNM_PATHNAME flag..
- ._savePkgMeta
- ✓ should resolve with the same package meta
- ✓ should set the original source and target in package meta file
- ✓ should save the package meta to the package meta file (.bower.json)
- ✓ should warn user for missing attributes in bower.json
- #isTargetable
- ✓ should return true by default
- #versions
- ✓ should resolve to an array by default
- #isCacheable
- ✓ caches for normal name
- ✓ does not cache for absolute paths
- ✓ does not cache for relative paths
- ✓ does not cache for parent paths
- ✓ does not cache for file:/// prefix
- ✓ does not cache for windows paths
- ✓ does not cache for windows absolute paths
- UrlResolver
- .constructor
- ✓ should guess the name from the URL
- ✓ should remove ?part from the URL when guessing the name
- ✓ should not guess the name or remove ?part from the URL if not guessing
- ✓ should error out if a target was specified
- .hasNew
- ✓ should resolve to true if the response is not in the 2xx range (42ms)
- ✓ should resolve to true if cache headers changed
- 1) should resolve to false if cache headers haven't changed
- 2) should resolve to true if server responds with 304 (ETag mechanism)
- 3) should work with redirects
- .resolve
- ✓ should download file, renaming it to index (78ms)
- ✓ should extract if source is an archive (227ms)
- ✓ should extract if source is an archive (case insensitive) (127ms)
- ✓ should copy extracted folder contents if archive contains only a folder inside (163ms)
- ✓ should extract if source is an archive and rename to index if it's only one file inside (76ms)
- ✓ should extract if source is an archive and not rename to index if inside it's just a just bower.json/component.json file in it (149ms)
- ✓ should rename single file from a single folder to index when source is an archive (122ms)
- ✓ should extract if response content-type is an archive (797ms)
- ✓ should extract if response content-disposition filename is an archive (77ms)
- ✓ should save the release if there's a E-Tag (45ms)
- ✓ should allow for query strings in URL (69ms)
- ✓ should save cache headers (53ms)
- ✓ should work with redirects (91ms)
- - it should error out if the status code is not within 200-299
- - should report progress when it takes too long to download
- content-disposition validation
- ✓ should work with and without quotes (480ms)
- ✓ should not work with partial quotes (261ms)
- ✓ should not work if the filename contain chars other than alphanumerical, dashes, spaces and dots (458ms)
- ✓ should trim leading and trailing spaces (104ms)
- ✓ should not work if the filename ends with a dot (387ms)
- ✓ should be case insensitive (500ms)
- #isTargetable
- ✓ should return false
- FsResolver
- .constructor
- ✓ should guess the name from the path
- ✓ should make paths absolute and normalized
- - should use config.cwd for resolving relative paths
- ✓ should error out if a target was specified
- .hasNew
- ✓ should resolve always to true (for now..)
- .resolve
- ✓ should copy the source directory contents (542ms)
- ✓ should copy the source file, renaming it to index (67ms)
- ✓ should rename to index if source is a folder with just one file in it (38ms)
- ✓ should not rename to index if source is a folder with just bower.json/component.json file in it (87ms)
- ✓ should copy the source directory permissions (551ms)
- ✓ should copy the source file permissions
- ✓ should not copy ignored paths (to speed up copying) (277ms)
- ✓ should extract if source is an archive (109ms)
- ✓ should copy extracted folder contents if archive contains only a folder inside (153ms)
- ✓ should extract if source is an archive and rename to index if it's only one file inside (153ms)
- ✓ should rename single file from a single folder to index when source is an archive (117ms)
- #isTargetable
- ✓ should return false
- GitResolver
- misc
- - should error out if git is not installed
- - should setup git template dir to an empty folder
- .hasNew
- ✓ should be true when the resolution type is different
- ✓ should be true when a higher version for a range is available
- ✓ should be true when a resolved to a lower version of a range
- ✓ should be false when resolved to the same tag (with same commit hash) for a given range
- ✓ should be true when resolved to the same tag (with different commit hash) for a given range
- ✓ should be true when a different commit hash for a given branch is available
- ✓ should be false when resolved to the the same commit hash for a given branch
- ✓ should be false when targeting commit hashes
- ._resolve
- ✓ should call the necessary functions by the correct order
- ✓ should reject the promise if _checkout is not implemented
- ✓ should reject the promise if #refs is not implemented
- ._findResolution
- ✓ should resolve to an object
- ✓ should fail to resolve * if no tags/heads are found
- ✓ should resolve "*" to the latest commit on master if a repository has no valid semver tags
- ✓ should resolve "*" to the latest version if a repository has valid semver tags, ignoring pre-releases
- ✓ should resolve "0.1.*" to the latest version if a repository has valid semver tags, ignoring pre-releases
- ✓ should resolve "*" to the latest version if a repository has valid semver tags, not ignoring pre-releases if they are the only versions
- ✓ should resolve "0.1.*" to the latest version if a repository has valid semver tags, not ignoring pre-releases if they are the only versions
- ✓ should resolve to the latest version that matches a range/version
- ✓ should resolve to a branch even if target is a range/version that does not exist
- ✓ should resolve to a tag even if target is a range that does not exist
- ✓ should resolve to the latest pre-release version that matches a range/version
- ✓ should resolve to the exact version if exists
- ✓ should fail to resolve if none of the versions matched a range/version
- ✓ should fail to resolve if there are no versions to match a range/version
- ✓ should resolve to the specified commit
- ✓ should resolve to the specified short commit
- ✓ should resolve to the specified tag if it exists
- ✓ should resolve to the specified branch if it exists
- ✓ should fail to resolve to the specified tag/branch if it doesn't exists
- ._cleanup
- ✓ should remove the .git folder from the temp dir (360ms)
- ✓ should not fail if .git does not exist for some reason
- ✓ should sill run even if _checkout fails for some reason
- ._savePkgMeta
- ✓ should save the resolution to the .bower.json to be used later by .hasNew
- ✓ should save the release in the package meta (46ms)
- ✓ should add the version to the package meta if not present and resolution is a version
- ✓ should remove the version from the package meta if resolution is not a version
- ✓ should warn if the resolution version is different than the package meta version
- ✓ should not warn if the resolution version and the package meta version are the same
- #branches
- ✓ should resolve to an empty object if no heads are found
- ✓ should resolve to an object where keys are branches and values their commit hashes
- ✓ should cache the result for each source
- ✓ should work if requested in parallel for the same source
- #tags
- ✓ should resolve to an empty hash if no tags are found
- ✓ should resolve to an hash of tags
- ✓ should cache the result for each source
- ✓ should work if requested in parallel for the same source
- #clearRuntimeCache
- ✓ should clear refs cache
- ✓ should clear branches cache
- ✓ should clear tags cache
- ✓ should clear versions cache
- #versions
- ✓ should resolve to an empty array if no tags are found
- ✓ should resolve to an empty array if no valid semver tags
- ✓ should resolve to an array of versions, ignoring invalid semver tags
- ✓ should order the versions according to the semver spec
- ✓ should cache the result for each source
- ✓ should work if requested in parallel for the same source
- GitFsResolver
- .constructor
- ✓ should guess the name from the path
- ✓ should not guess the name from the path if the name was specified
- ✓ should make paths absolute and normalized
- - should use config.cwd for resolving relative paths
- .resolve
- ✓ should checkout correctly if resolution is a branch (299ms)
- ✓ should checkout correctly if resolution is a tag (341ms)
- ✓ should checkout correctly if resolution is a commit (279ms)
- ✓ should remove any untracked files and directories (323ms)
- ✓ should leave the original repository untouched (874ms)
- ✓ should copy source folder permissions (496ms)
- #refs
- ✓ should resolve to the references of the local repository
- ✓ should cache the results
- GitRemoteResolver
- .constructor
- ✓ should guess the name from the path
- .resolve
- ✓ should checkout correctly if resolution is a branch (385ms)
- ✓ should checkout correctly if resolution is a tag (150ms)
- ✓ should checkout correctly if resolution is a commit (83ms)
- - should handle gracefully servers that do not support --depth=1
- - should report progress when it takes too long to clone
- #refs
- ✓ should resolve to the references of the remote repository
- ✓ should cache the results
- GitHub
- .constructor
- - should throw an error on invalid GitHub URLs
- ✓ should ensure .git in the source
- .resolve
- ✓ should download and extract the .tar.gz archive from GitHub.com (664ms)
- ✓ should retry using the GitRemoteResolver mechanism if download failed (128ms)
- ✓ should retry using the GitRemoteResolver mechanism if extraction failed (85ms)
- ✓ should fallback to the GitRemoteResolver mechanism if resolution is not a tag (404ms)
- - it should error out if the status code is not within 200-299
- - should report progress if it takes too long to download
- ._savePkgMeta
- - should guess the homepage if not already set
- SvnResolver
- misc
- - should error out if svn is not installed
- - should setup svn template dir to an empty folder
- .hasNew
- ✓ should be true when the resolution type is different (44ms)
- ✓ should be true when a higher version for a range is available
- ✓ should be true when a resolved to a lower version of a range
- ✓ should be false when resolved to the same tag (with same commit hash) for a given range
- ✓ should be true when resolved to the same tag (with different commit hash) for a given range
- ✓ should be false when targeting commit hashes
- ._resolve
- ✓ should call the necessary functions by the correct order (40ms)
- ._findResolution
- ✓ should resolve to an object
- ✓ should resolve "*" to the trunk if a repository has no valid semver tags (70ms)
- ✓ should resolve "*" to the latest version if a repository has valid semver tags, ignoring pre-releases
- ✓ should resolve "*" to the latest version if a repository has valid semver tags, not ignoring pre-releases if they are the only versions
- ✓ should resolve to the latest version that matches a range/version
- ✓ should resolve to a tag even if target is a range that does not exist
- ✓ should resolve to the latest pre-release version that matches a range/version
- ✓ should resolve to the exact version if exists
- ✓ should fail to resolve if none of the versions matched a range/version
- ✓ should fail to resolve if there are no versions to match a range/version
- ✓ should resolve to the specified commit
- ✓ should resolve to the specified tag if it exists
- ✓ should fail to resolve to the specified tag if it doesn't exists
- ._savePkgMeta
- ✓ should save the resolution to the .bower.json to be used later by .hasNew
- ✓ should save the release in the package meta (78ms)
- ✓ should add the version to the package meta if not present and resolution is a version
- ✓ should remove the version from the package meta if resolution is not a version
- ✓ should warn if the resolution version is different than the package meta version
- ✓ should not warn if the resolution version and the package meta version are the same
- #clearRuntimeCache
- ✓ should clear tags cache
- ✓ should clear versions cache
- #versions
- ✓ should resolve to an empty array if no tags are found
- ✓ should resolve to an empty array if no valid semver tags (45ms)
- ✓ should resolve to an array of versions, ignoring invalid semver tags
- ✓ should order the versions according to the semver spec
- ✓ should cache the result for each source
- ✓ should work if requested in parallel for the same source
- #parseSubversionListOutput
- ✓ should not include the . (dot)path
- ✓ should parse path names with alphanumerics, dashes, dots and underscores
- .constructor
- ✓ should guess the name from the path
- .resolve
- ✓ should export correctly if resolution is a tag (878ms)
- ✓ should export correctly if resolution is a commit (98ms)
- resolverFactory
- ✓ should recognize git remote endpoints correctly (1834ms)
- ✓ should recognize GitHub endpoints correctly (1364ms)
- ✓ should recognize local fs git endpoints correctly (81ms)
- ✓ should recognize svn remote endpoints correctly (608ms)
- ✓ should recognize local fs files/folder endpoints correctly (355ms)
- ✓ should recognize URL endpoints correctly (50ms)
- ✓ should recognize registry endpoints correctly (1394ms)
- ✓ should error out if the package was not found in the registry (1152ms)
- ✓ should set registry to true on the decomposed endpoint if fetched from the registry
- ✓ should use the configured shorthand resolver
- ✓ should not expand using the shorthand resolver if it looks like a SSH URL (1090ms)
- ✓ should error out if there's no suitable resolver for a given source
- - should use config.cwd when resolving relative paths
- ✓ should not swallow constructor errors when instantiating resolvers (79ms)
- .clearRuntimeCache
- ✓ should call every resolver static method that clears the runtime cache
- ResolveCache
- .constructor
- ✓ should create the cache folder if it doesn't exists
- ✓ should not error out if the cache folder already exists
- .store
- ✓ should move the canonical dir to source-md5/version/ folder if package meta has a version
- ✓ should move the canonical dir to source-md5/target/ folder if package meta has no version
- ✓ should move the canonical dir to source-md5/_wildcard/ folder if package meta has no version and target is *
- ✓ should read the package meta if not present (41ms)
- ✓ should error out when reading the package meta if the file does not exist
- ✓ should error out when reading an invalid package meta
- ✓ should move the canonical dir, even if it is in a different drive (48ms)
- ✓ should update the in-memory cache (86ms)
- ✓ should url encode target when storing to the fs
- ✓ should be possible to store two package at same time
- .versions
- ✓ should resolve to an array
- ✓ should ignore non-semver folders of the source
- ✓ should order the versions
- ✓ should cache versions to speed-up subsequent calls
- .retrieve
- ✓ should resolve to empty if there are no packages for the requested source
- ✓ should resolve to empty if there are no suitable packages for the requested target
- ✓ should remove invalid packages from the cache if their package meta is missing or invalid (148ms)
- ✓ should resolve to the highest package that matches a range target, ignoring pre-releases (70ms)
- ✓ should resolve to the highest package that matches a range target, not ignoring pre-releases if they are the only versions
- ✓ should resolve to exact match (including build metadata) if available
- ✓ should resolve to the _wildcard package if target is * and there are no semver versions
- ✓ should resolve to the exact target it's not a semver range
- .eliminate
- ✓ should delete the source-md5/version folder
- ✓ should delete the source-md5/target folder
- ✓ should delete the source-md5/_wildcard folder
- ✓ should delete the source-md5 folder if empty (43ms)
- ✓ should remove entry from in memory cache if the source-md5 folder was deleted (89ms)
- .clear
- ✓ should empty the whole cache folder (70ms)
- ✓ should erase the in-memory cache
- .reset
- ✓ should erase the in-memory cache
- .list
- ✓ should resolve to an empty array if the cache is empty
- ✓ should resolve to an ordered array of entries (name ASC, release ASC) (206ms)
- ✓ should ignore lurking files where dirs are expected (63ms)
- ✓ should delete entries if failed to read package meta (65ms)
- #clearRuntimeCache
- ✓ should clear the in-memory cache for all sources
- PackageRepository
- .constructor
- ✓ should pass the config correctly to the registry client, including its cache folder
- .fetch
- ✓ should call the resolver factory to get the appropriate resolver (178ms)
- ✓ should just call the resolver resolve method if force was specified (116ms)
- ✓ should attempt to retrieve a resolved package from the resolve package (169ms)
- ✓ should avoid using cache for local resources (111ms)
- ✓ should just call the resolver resolve method if no appropriate package was found in the resolve cache (141ms)
- ✓ should call the resolver hasNew method if an appropriate package was found in the resolve cache (262ms)
- ✓ should call the resolver resolve method if hasNew resolved to true (244ms)
- ✓ should resolve to the cached package if hasNew resolve to false (66ms)
- ✓ should just use the cached package if offline was specified (48ms)
- ✓ should error out if there is no appropriate package in the resolve cache and offline was specified
- .versions
- ✓ should call the versions method on the concrete resolver
- ✓ should call the versions method on the resolve cache if offline was specified (47ms)
- .eliminate
- ✓ should call the eliminate method from the resolve cache
- ✓ should call the clearCache method with the name from the registry client
- .list
- ✓ should proxy to the resolve cache list method
- .clear
- ✓ should call the clear method from the resolve cache
- ✓ should call the clearCache method without name from the registry client
- .reset
- ✓ should call the reset method from the resolve cache
- ✓ should call the resetCache method without name from the registry client
- .getRegistryClient
- ✓ should return the underlying registry client
- .getResolveCache
- ✓ should return the underlying resolve cache
- #clearRuntimeCache
- ✓ should clear the resolve cache runtime cache
- ✓ should clear the resolver factory runtime cache
- ✓ should clear the registry runtime cache
- scripts
- ✓ should run preinstall and postinstall hooks. (473ms)
- ✓ should run preuninstall hook. (172ms)
- ✓ should not break anything when no hooks configured. (47ms)
- ✓ should reorder packages by dependencies, while trying to maintain order from bower.json, correctly.
- ✓ should process scripts with quotes and vars in the cmd properly. (406ms)
- Manager
- _areCompatible
- resolved is being fetched
- ✓ accepts endpoints with same targets
- ✓ rejects endpoints with different targets
- ✓ accepts with version and matching range
- ✓ rejects with version and non-matching range
- ✓ accepts with matching range and version
- ✓ accepts with non-matching range and version
- ✓ accepts with matching ranges
- ✓ rejects with non-matching ranges
- ✓ rejects with non-matching ranges
- resolved is already fetched
- ✓ accepts if the same version as resolved
- ✓ rejects if different version than resolved
- ✓ accepts if range matches resolved version
- ✓ rejects if range does not match
- _getCap
- ✓ finds highest bound
- ✓ finds lowest bound
- ✓ defaults to highest bound
- ✓ ignores non-semver elements
- ✓ returns empty object if cap is not found
- _uniquify
- ✓ leaves last unique element
- ✓ compares by name first
- ✓ compares by source if name is not available
- ✓ leaves different targets intact
- ✓ removes if same targets
- ✓ ignores other fields
- StandardRenderer
- ✓ logs generic simple message
- ✓ logs simple error
- ✓ logs error with details
- ✓ logs system details in verbose mode
- ✓ logs stack trace in verbose mode
- ✓ logs console trace in verbose mode
- ✓ outputs checkout command log
- ✓ outputs full progress for wide command
- ✓ outputs full progress for narrow command
- ✓ outputs extract log just as progress log
- ✓ outputs incompatible log with suitable package (58ms)
- ✓ outputs solver log without suitable package
- ✓ outputs json log (205ms)
- ✓ outputs cached entry log
- ✓ adjusts whitespace when package id too long
- ✓ outputs install command log
- ✓ outputs short info command log
- ✓ outputs full info command log
- ✓ outputs lookup command log
- ✓ outputs link command log
- ✓ outputs search command log
- ✓ outputs register command log
- ✓ outputs cache list command log
- ✓ outputs help command log
- JsonRenderer
- ✓ logs simple message to stderr
- ✓ logs error message to stderr
- ✓ prompts for answer
- integration tests
- bower cache list
- ✓ correctly reads arguments
- ✓ lists packages from cache (67ms)
- ✓ lists selected package names (49ms)
- bower cache clean
- ✓ correctly reads arguments
- ✓ removes all cache (111ms)
- ✓ removes single package (60ms)
- ✓ removes single package package version (59ms)
- bower help
- ✓ correctly reads arguments
- ✓ shows general help
- ✓ shows help for home command
- ✓ shows help for info command
- ✓ shows help for init command
- ✓ shows help for install command
- ✓ shows help for link command (39ms)
- ✓ shows help for list command
- ✓ shows help for lookup command
- ✓ shows help for prune command
- ✓ shows help for register command
- ✓ shows help for search command
- ✓ shows help for update command
- ✓ shows help for uninstall command
- ✓ shows help for version command
- ✓ shows help for cache list command
- ✓ shows help for cache clean command
- ✓ displays error for non-existing command
- bower home
- ✓ correctly reads arguments
- ✓ opens repository home page in web browser (76ms)
- ✓ opens home page of current repository
- ✓ errors if no homepage is set (73ms)
- bower info
- ✓ correctly reads arguments
- ✓ just returns if not package is specified
- ✓ shows info about given package (347ms)
- bower init
- ✓ correctly reads arguments
- ✓ generates bower.json file (111ms)
- ✓ errors on non-interactive mode
- ✓ warns about existing bower.json
- bower install
- ✓ correctly reads arguments
- ✓ correctly reads long arguments
- ✓ writes to bower.json if --save flag is used (111ms)
- ✓ writes an exact version number to dependencies in bower.json if --save --save-exact flags are used (93ms)
- ✓ writes an exact version number to devDependencies in bower.json if --save-dev --save-exact flags are used (87ms)
- ✓ does not write to bower.json if only --save-exact flag is used (85ms)
- ✓ reads .bowerrc from cwd (91ms)
- ✓ runs preinstall hook (228ms)
- ✓ runs preinstall hook (202ms)
- ✓ does not run hooks if nothing is installed
- ✓ runs postinstall after bower.json is written (183ms)
- ✓ display the output of hook scripts (362ms)
- ✓ works for git repositories (350ms)
- bower list
- ✓ correctly reads arguments
- ✓ correctly reads long arguments
- ✓ lists no packages when nothing installed (50ms)
- ✓ lists 1 dependency when 1 local package installed (156ms)
- ✓ lists 1 dependency with relative paths when 1 local package installed (198ms)
- ✓ lists 1 dependency with 1 source relative source mapping when 1 local package installed (131ms)
- ✓ lists 1 dependency with 2 source relative source mapping when 1 local package installed (115ms)
- ✓ lists 1 dependency when 1 git package installed (426ms)
- ✓ lists 1 dependency with relative paths when 1 git package installed (344ms)
- bower link
- ✓ correctly reads arguments
- ✓ creates self link
- ✓ creates inter-link (78ms)
- ✓ creates inter-link with custom local name (55ms)
- ✓ errors on unexising package
- bower lookup
- ✓ correctly reads arguments
- ✓ lookups package by name
- ✓ returns null if no package is found
- ✓ returns null if called without argument
- bower home
- ✓ correctly reads arguments
- ✓ correctly reads long arguments
- ✓ removes extraneous packages (93ms)
- ✓ leaves non-bower packages (59ms)
- ✓ deals with custom directory (70ms)
- bower register
- ✓ correctly reads arguments
- ✓ errors if name is not provided
- ✓ errors if url is not provided
- ✓ errors if url is not correct
- ✓ errors if trying to register private package
- ✓ should call registry client with name and url
- ✓ should confirm in interactive mode
- ✓ should skip confirming when forcing
- bower search
- ✓ correctly reads arguments
- ✓ searches for single repository
- ✓ lists all repositories if no query given
- bower uninstall
- ✓ correctly reads arguments
- ✓ correctly reads long arguments
- ✓ does not remove anything from dependencies by default (43ms)
- ✓ removes dependency from bower.json if --save flag is used (42ms)
- bower update
- ✓ correctly reads arguments
- ✓ install missing packages (81ms)
- ✓ runs preinstall hook when installing missing package (197ms)
- ✓ runs postinstall hook when installing missing package (196ms)
- ✓ doesn't runs postinstall when no package is update (234ms)
- ✓ updates a package (419ms)
- ✓ runs preinstall hook when updating a package (648ms)
- ✓ runs postinstall hook when updating a package (851ms)
- bower list
- v0.0.1
- ✓ bumps patch version (49ms)
- v0.1.0
- ✓ bumps minor version (44ms)
- v1.0.0
- ✓ bumps major version
- v1.2.3
- ✓ changes version
- v0.0.1
- ✓ bumps patch version, create commit, and tag (131ms)
- v0.0.1
- ✓ bumps with custom commit message (158ms)
- bower
- util
- removeIgnores
- ✓ removes all files in directory
- ✓ removes whole directory
- ✓ removes whole directory (no ending slash)
- ✓ removes all but one file
- ✓ refuses to ignore bower.json
- ✓ removes all but one file deep down the tree
- analytics
- #setup
- ✓ leaves analytics enabled if provided
- ✓ leaves analytics disabled if provided
- ✓ disables analytics for non-interactive mode
- ✓ disables if insight.optOut is true and interactive
- ✓ enables if insight.optOut is false and interactive
- ✓ disables if insight.optOut is false and non-interactive
- ✓ enables if interactive insights return true from prompt
- ✓ disables if interactive insights return false from prompt
- Tracker
- ✓ tracks if analytics = true
- ✓ does not track if analytics = false
- ✓ tracks if analytics = undefined and setup returns true
- 461 passing (43s)
- 22 pending
- 3 failing
- 1) UrlResolver .hasNew should resolve to false if cache headers haven't changed:
- Uncaught Error: expected true to equal false
- at Assertion.assert (/Users/amanagar/Documents/javascript/bower/node_modules/expect.js/index.js:96:13)
- at Assertion.be.Assertion.equal (/Users/amanagar/Documents/javascript/bower/node_modules/expect.js/index.js:216:10)
- at Assertion.(anonymous function) [as be] (/Users/amanagar/Documents/javascript/bower/node_modules/expect.js/index.js:69:24)
- at /Users/amanagar/Documents/javascript/bower/test/core/resolvers/urlResolver.js:157:35
- From previous event:
- at Context.<anonymous> (/Users/amanagar/Documents/javascript/bower/test/core/resolvers/urlResolver.js:156:14)
- at Test.Runnable.run (/Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runnable.js:233:15)
- at Runner.runTest (/Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:387:10)
- at /Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:470:12
- at next (/Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:312:14)
- at /Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:322:7
- at next (/Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:257:23)
- at Immediate._onImmediate (/Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:289:5)
- 2) UrlResolver .hasNew should resolve to true if server responds with 304 (ETag mechanism):
- Uncaught Error: expected true to equal false
- at Assertion.assert (/Users/amanagar/Documents/javascript/bower/node_modules/expect.js/index.js:96:13)
- at Assertion.be.Assertion.equal (/Users/amanagar/Documents/javascript/bower/node_modules/expect.js/index.js:216:10)
- at Assertion.(anonymous function) [as be] (/Users/amanagar/Documents/javascript/bower/node_modules/expect.js/index.js:69:24)
- at /Users/amanagar/Documents/javascript/bower/test/core/resolvers/urlResolver.js:185:35
- From previous event:
- at Context.<anonymous> (/Users/amanagar/Documents/javascript/bower/test/core/resolvers/urlResolver.js:184:14)
- at Test.Runnable.run (/Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runnable.js:233:15)
- at Runner.runTest (/Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:387:10)
- at /Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:470:12
- at next (/Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:312:14)
- at /Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:322:7
- at next (/Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:257:23)
- at Immediate._onImmediate (/Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:289:5)
- 3) UrlResolver .hasNew should work with redirects:
- Uncaught Error: expected true to equal false
- at Assertion.assert (/Users/amanagar/Documents/javascript/bower/node_modules/expect.js/index.js:96:13)
- at Assertion.be.Assertion.equal (/Users/amanagar/Documents/javascript/bower/node_modules/expect.js/index.js:216:10)
- at Assertion.(anonymous function) [as be] (/Users/amanagar/Documents/javascript/bower/node_modules/expect.js/index.js:69:24)
- at /Users/amanagar/Documents/javascript/bower/test/core/resolvers/urlResolver.js:221:35
- From previous event:
- at Context.<anonymous> (/Users/amanagar/Documents/javascript/bower/test/core/resolvers/urlResolver.js:220:14)
- at Test.Runnable.run (/Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runnable.js:233:15)
- at Runner.runTest (/Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:387:10)
- at /Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:470:12
- at next (/Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:312:14)
- at /Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:322:7
- at next (/Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:257:23)
- at Immediate._onImmediate (/Users/amanagar/Documents/javascript/bower/node_modules/mocha/lib/runner.js:289:5)
- Warning: Task "simplemocha:full" failed. Use --force to continue.
- Aborted due to warnings.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement