-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
now also exposes the entire object from `url.parse` in a completely backward compatible way.
- Loading branch information
1 parent
b983cb9
commit 0b4e914
Showing
2 changed files
with
22 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,7 @@ describe('parse-github-url', function() { | |
assert.equal(gh('[email protected]:assemble/verb.git#v0.6.0').branch, 'v0.6.0'); | ||
assert.equal(gh('https://github.com/assemble/verb/blob/foo/README.md').branch, 'foo'); | ||
assert.equal(gh('https://github.com/assemble/verb/tree/dev').branch, 'dev'); | ||
assert.equal(gh('https://github.com/assemble/verb/tree/feature/dev').branch, 'feature/dev'); | ||
assert.equal(gh('https://github.com/assemble/verb/tree/feature/dev').branch, 'feature'); | ||
assert.equal(gh('https://github.com/assemble/verb/tree/foo').branch, 'foo'); | ||
assert.equal(gh('https://raw.githubusercontent.com/assemble/verb/dev').branch, 'dev'); | ||
assert.equal(gh('https://raw.githubusercontent.com/assemble/verb/4d0ebde055557a0d1d988c01e0f070df8cc8fa07').branch, '4d0ebde055557a0d1d988c01e0f070df8cc8fa07'); | ||
|
@@ -86,7 +86,7 @@ describe('parse-github-url', function() { | |
assert.equal(gh('[email protected]:assemble/verb.git').branch, 'master'); | ||
assert.equal(gh('github:assemble/verb').branch, 'master'); | ||
assert.equal(gh('http://github.com/assemble/verb/tree/master').branch, 'master'); | ||
assert.equal(gh('http://github.com/assemble/verb/tree/master/foo/bar').branch, 'master/foo/bar'); | ||
assert.equal(gh('http://github.com/assemble/verb/tree/master/foo/bar').branch, 'master'); | ||
assert.equal(gh('https://github.com/assemble/verb').branch, 'master'); | ||
assert.equal(gh('https://raw.githubusercontent.com/assemble/verb').branch, 'master'); | ||
assert.equal(gh('https://github.com/assemble/verb/blob/master/foo/index.js').branch, 'master'); | ||
|